Add Snap package icon

This commit is contained in:
Adnan Hodzic 2023-08-13 11:07:48 +02:00
parent aa8d0ddb9a
commit 360e7b8027
4 changed files with 16 additions and 1 deletions

View File

@ -13,7 +13,7 @@ def read(name):
return f.read() return f.read()
# Used for the tar.gz/snap releases # Used for the tar.gz/snap releases
VERSION = "1.9.9" VERSION = "2.0"
setup( setup(
name="auto-cpufreq", name="auto-cpufreq",

View File

@ -0,0 +1,10 @@
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name=auto-cpufreq
Comment=Automatic CPU speed & power optimizer for Linux
Exec=auto-cpufreq-gtk
StartupWMClass=app.py
Terminal=false
Icon=${SNAP}/meta/gui/auto-cpufreq.png
Categories=System;

BIN
snap/gui/auto-cpufreq.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

View File

@ -62,12 +62,17 @@ apps:
- etc-auto-cpufreq-conf - etc-auto-cpufreq-conf
auto-cpufreq-gtk: auto-cpufreq-gtk:
command: bin/auto-cpufreq-gtk command: bin/auto-cpufreq-gtk
#desktop: usr/share/applications/auto-cpufreq.desktop
environment: environment:
PYTHONPATH: $SNAP/usr/lib/python3/site-packages:$SNAP/usr/lib/python3/dist-packages:$PYTHONPATH PYTHONPATH: $SNAP/usr/lib/python3/site-packages:$SNAP/usr/lib/python3/dist-packages:$PYTHONPATH
LC_ALL: C.UTF-8 LC_ALL: C.UTF-8
LANG: C.UTF-8 LANG: C.UTF-8
PKG_MARKER: SNAP PKG_MARKER: SNAP
plugs: plugs:
- desktop
- desktop-legacy
- wayland
- x11
- cpu-control - cpu-control
- system-observe - system-observe
- hardware-observe - hardware-observe