diff --git a/auto_cpufreq/core.py b/auto_cpufreq/core.py index 99a23dc..4931b99 100644 --- a/auto_cpufreq/core.py +++ b/auto_cpufreq/core.py @@ -59,7 +59,7 @@ auto_cpufreq_stats_path = None auto_cpufreq_stats_file = None # track governor override -STORE = "/opt/auto-cpufreq/venv/override.pickle" +STORE = "/opt/auto-cpufreq/override.pickle" if os.getenv("PKG_MARKER") == "SNAP": auto_cpufreq_stats_path = Path("/var/snap/auto-cpufreq/current/auto-cpufreq.stats") diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 91a7a15..bcb8333 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -43,6 +43,10 @@ plugs: interface: system-files write: - /etc/auto-cpufreq.conf + opt-auto-cpufreq: + interface: system-files + write: + - /opt/auto-cpufreq/override.pickle apps: auto-cpufreq: @@ -56,15 +60,15 @@ apps: - cpu-control - system-observe - hardware-observe - - etc-auto-cpufreq-conf - + - opt-auto-cpufreq service: command: usr/bin/snapdaemon plugs: - cpu-control - system-observe - hardware-observe - - etc-auto-cpufreq-conf + - etc-auto-cpufreq + - opt-auto-cpufreq environment: LC_ALL: C.UTF-8 LANG: C.UTF-8