summaryrefslogtreecommitdiff
path: root/src/caelestia
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-14 00:12:42 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-14 00:12:42 +1000
commit62e7911864ce6ec8a0b371735cf640d81821100e (patch)
tree28785989b40ebdd8ff535379449278865bdefdd9 /src/caelestia
parentreadme: update installation section (diff)
downloadcaelestia-cli-62e7911864ce6ec8a0b371735cf640d81821100e.tar.gz
caelestia-cli-62e7911864ce6ec8a0b371735cf640d81821100e.tar.bz2
caelestia-cli-62e7911864ce6ec8a0b371735cf640d81821100e.zip
version: fix pacman + use shell version helper
Diffstat (limited to 'src/caelestia')
-rw-r--r--src/caelestia/utils/version.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/caelestia/utils/version.py b/src/caelestia/utils/version.py
index 5e75387..e8ec8e7 100644
--- a/src/caelestia/utils/version.py
+++ b/src/caelestia/utils/version.py
@@ -7,7 +7,7 @@ from caelestia.utils.paths import config_dir
def print_version() -> None:
if shutil.which("pacman"):
print("Packages:")
- pkgs = ["caelestia-shell-git", "caelestia-cli-git", "caelestia-meta"]
+ pkgs = ["caelestia-shell", "caelestia-cli", "caelestia-meta"]
versions = subprocess.run(
["pacman", "-Q", *pkgs], stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, text=True
).stdout
@@ -32,6 +32,14 @@ def print_version() -> None:
print("Caelestia: not installed")
print()
+ try:
+ shell_ver = subprocess.check_output(["/usr/lib/caelestia/version", "-s"], text=True).strip()
+ print("Shell:")
+ print(" ", shell_ver)
+ except subprocess.CalledProcessError:
+ print("Shell: version helper not available")
+
+ print()
if shutil.which("qs"):
print("Quickshell:")
print(" ", subprocess.check_output(["qs", "--version"], text=True).strip())