Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
20 lines
753 B
Diff
20 lines
753 B
Diff
diff --git c/auto_cpufreq/core.py i/auto_cpufreq/core.py
|
|
index b51d55d..b0bff1e 100755
|
|
--- c/auto_cpufreq/core.py
|
|
+++ i/auto_cpufreq/core.py
|
|
@@ -96,13 +96,8 @@ except PermissionError:
|
|
|
|
# display running version of auto-cpufreq
|
|
def app_version():
|
|
- print("auto-cpufreq version: ", end="")
|
|
-
|
|
- if IS_INSTALLED_WITH_SNAP: print(getoutput(r"echo \(Snap\) $SNAP_VERSION"))
|
|
- elif IS_INSTALLED_WITH_AUR: print(getoutput("pacman -Qi auto-cpufreq | grep Version"))
|
|
- else:
|
|
- try: print(get_formatted_version())
|
|
- except Exception as e: print(repr(e))
|
|
+ print("auto-cpufreq version: @version@")
|
|
+ print("Git commit: v@version@")
|
|
|
|
def check_for_update():
|
|
# returns True if a new release is available from the GitHub repo
|