From 9f1bbc17788cc9eeb5b4cba114d4f3d3fb22043a Mon Sep 17 00:00:00 2001 From: Adnan Hodzic Date: Thu, 23 Jan 2020 07:12:04 +0100 Subject: [PATCH] fix display of help dialog in snap --- bin/auto-cpufreq | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/auto-cpufreq b/bin/auto-cpufreq index 11cb23c..dbed8d9 100755 --- a/bin/auto-cpufreq +++ b/bin/auto-cpufreq @@ -26,7 +26,10 @@ def main(monitor, live, daemon, install, log): print("\n-----\n") # ToDo: add option what to run depending on the env - s.call(["python3", "auto-cpufreq", "--help"]) + if os.getenv('PKG_MARKER') == "SNAP": + s.call(["auto-cpufreq", "--help"]) + else: + s.call(["python3", "auto-cpufreq", "--help"]) #s.call([tool_run, " --help"]) footer(79) else: