From 19e57bde029bfd5ba706c7cfafd626f7e4e9b1ac Mon Sep 17 00:00:00 2001 From: Uyonoh <68875749+Uyonoh@users.noreply.github.com> Date: Sun, 1 Dec 2024 10:08:56 +0100 Subject: [PATCH] Add exec permission for --install, --remove, and cpufreqctl (#762) --- auto_cpufreq/core.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/auto_cpufreq/core.py b/auto_cpufreq/core.py index 3475232..f03e7de 100755 --- a/auto_cpufreq/core.py +++ b/auto_cpufreq/core.py @@ -282,6 +282,7 @@ def cpufreqctl(): """ if not (IS_INSTALLED_WITH_SNAP or os.path.isfile("/usr/local/bin/cpufreqctl.auto-cpufreq")): copy(SCRIPTS_DIR / "cpufreqctl.sh", "/usr/local/bin/cpufreqctl.auto-cpufreq") + call(["chmod", "a+x", "/usr/local/bin/cpufreqctl.auto-cpufreq"]) def cpufreqctl_restore(): """ @@ -316,9 +317,11 @@ def deploy_daemon(): print("\n* Deploy auto-cpufreq install script") copy(SCRIPTS_DIR / "auto-cpufreq-install.sh", "/usr/local/bin/auto-cpufreq-install") + call(["chmod", "a+x", "/usr/local/bin/auto-cpufreq-install"]) print("\n* Deploy auto-cpufreq remove script") copy(SCRIPTS_DIR / "auto-cpufreq-remove.sh", "/usr/local/bin/auto-cpufreq-remove") + call(["chmod", "a+x", "/usr/local/bin/auto-cpufreq-remove"]) # output warning if gnome power profile is running gnome_power_detect_install()