Make icon path relative

* Removes the hardcoded path to the icon in the .desktop file
* Allows themes to override the default application icon (icons are searched for in theme paths first)
* Debian: create symbolic link in /usr/share/pixmaps that points to the icon file
* Arch: the same thing is done by PKGBUILD maintainers downstream
Cette révision appartient à :
glubsy 2020-12-06 18:36:52 +01:00
Parent 1d05f8910d
révision 452d1604bd
3 fichiers modifiés avec 3 ajouts et 2 suppressions

Voir le fichier

@ -3,5 +3,5 @@
"longname": "dupeGuru",
"execname": "dupeguru",
"arch": "any",
"iconpath": "/usr/share/dupeguru/dgse_logo_128.png"
"iconpath": "dupeguru"
}

Voir le fichier

@ -8,4 +8,5 @@ all:
chmod +x src/run.py
cp -R src/ "$(CURDIR)/debian/{pkgname}/usr/share/{execname}"
cp "$(CURDIR)/debian/{execname}.desktop" "$(CURDIR)/debian/{pkgname}/usr/share/applications"
ln -s "/usr/share/{execname}/dgse_logo_128.png" "$(CURDIR)/debian/{pkgname}/usr/pixmaps/{execname}.png"
ln -s "/usr/share/{execname}/run.py" "$(CURDIR)/debian/{pkgname}/usr/bin/{execname}"

Voir le fichier

@ -3,5 +3,5 @@
"longname": "dupeGuru",
"execname": "dupeguru",
"arch": "any",
"iconpath": "/usr/share/dupeguru/dgse_logo_128.png"
"iconpath": "dupeguru"
}