Browse Source

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
tags/4.1.0
glubsy 4 months ago
parent
commit
452d1604bd
3 changed files with 3 additions and 2 deletions
  1. +1
    -1
      pkg/arch/dupeguru.json
  2. +1
    -0
      pkg/debian/Makefile
  3. +1
    -1
      pkg/debian/dupeguru.json

+ 1
- 1
pkg/arch/dupeguru.json View File

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

+ 1
- 0
pkg/debian/Makefile View File

@@ -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}"

+ 1
- 1
pkg/debian/dupeguru.json View File

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

Loading…
Cancel
Save