159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
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
|