From 5b01ce4d97c3148869422e58c48c22cbb974e489 Mon Sep 17 00:00:00 2001 From: Adnan Hodzic Date: Sat, 16 Sep 2023 12:29:53 +0200 Subject: [PATCH] Add Snap package deprecation notice --- README.md | 28 ++++++++++++++-------------- auto_cpufreq/gui/app.py | 2 +- auto_cpufreq/power_helper.py | 3 +++ 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 8fae3f9..0319201 100644 --- a/README.md +++ b/README.md @@ -81,8 +81,22 @@ Supported devices must have an Intel, AMD or ARM CPUs. This tool was developed t ## Installing auto-cpufreq +### auto-cpufreq-installer + +Get source code, run installer and follow on screen instructions: + +``` +git clone https://github.com/AdnanHodzic/auto-cpufreq.git +cd auto-cpufreq && sudo ./auto-cpufreq-installer +``` +#### Update using auto-cpufreq-installer + +The feature is available from version *1.9.8*. For further information: [--update](#update---auto-cpufreq-update) + ### Snap store +*Please note: due to [Snap package confinement limitations](https://forum.snapcraft.io/t/pkexec-not-found-python-gtk-gnome-app/36579) please consider installing auto-cpufreq using [auto-cpufreq-installer](#auto-cpufreq-installer)* + auto-cpufreq is available on the [snap store](https://snapcraft.io/auto-cpufreq), or can be installed using CLI: ``` @@ -94,20 +108,6 @@ sudo snap install auto-cpufreq * Fedora users will [encounter following error](https://twitter.com/killyourfm/status/1291697985236144130) due to `cgroups v2` [being in development](https://github.com/snapcore/snapd/pull/7825). This problem can be resolved by either running `sudo snap run auto-cpufreq` after the snap installation or by using the [auto-cpufreq-installer](#auto-cpufreq-installer) which doesn't have this issue. -### auto-cpufreq-installer - -Get source code, run installer and follow on screen instructions: - -``` -git clone https://github.com/AdnanHodzic/auto-cpufreq.git -cd auto-cpufreq && sudo ./auto-cpufreq-installer -``` -### Update using auto-cpufreq-installer - -The feature is available from version *1.9.8*. For further information: [--update](#update---auto-cpufreq-update) - -In case you encounter any problems with `auto-cpufreq-installer`, please [submit a bug report](https://github.com/AdnanHodzic/auto-cpufreq/issues/new). - ### AUR package (Arch/Manjaro Linux) *AUR is currently unmaintained & has issues*! Until someone starts maintaining it, use the [auto-cpufreq-installer](#auto-cpufreq-installer) if you intend to have the latest changes as otherwise you'll run into errors, i.e: [#471](https://github.com/AdnanHodzic/auto-cpufreq/issues/471). However, if you still wish to use AUR then follow the [Troubleshooting](#aur) section for solved known issues. diff --git a/auto_cpufreq/gui/app.py b/auto_cpufreq/gui/app.py index 80dc30c..d1e60a3 100644 --- a/auto_cpufreq/gui/app.py +++ b/auto_cpufreq/gui/app.py @@ -60,7 +60,7 @@ class ToolWindow(Gtk.Window): def snap(self): box = Gtk.Box(orientation=Gtk.Orientation.VERTICAL, halign=Gtk.Align.CENTER, valign=Gtk.Align.CENTER) - # reference: https://forum.snapcraft.io/t/pkexec-not-found-python-gtk-gnome-app/36579/12 + # reference: https://forum.snapcraft.io/t/pkexec-not-found-python-gtk-gnome-app/36579 label = Gtk.Label(label="GUI not available due to Snap package confinement limitations.\nPlease install auto-cpufreq using auto-cpufreq-installer\nVisit the GitHub repo for more info") label.set_justify(Gtk.Justification.CENTER) button = Gtk.LinkButton.new_with_label( diff --git a/auto_cpufreq/power_helper.py b/auto_cpufreq/power_helper.py index 56acf55..1386e0c 100644 --- a/auto_cpufreq/power_helper.py +++ b/auto_cpufreq/power_helper.py @@ -104,6 +104,9 @@ def gnome_power_detect_install(): # notification on snap def gnome_power_detect_snap(): print("\n----------------------------------- Warning -----------------------------------\n") + print("Due to Snap package confinement limitations please consider installing auto-cpufreq using") + print("auto-cpufreq-installer: https://github.com/AdnanHodzic/auto-cpufreq/#auto-cpufreq-installer") + print("") print("Unable to detect state of GNOME Power Profiles daemon service!") print("This daemon might interfere with auto-cpufreq and should be disabled.") print("\nSteps to perform this action using auto-cpufreq: power_helper script:")