From 452d1604bd527afd1e0c31e58b9543386ded9515 Mon Sep 17 00:00:00 2001 From: glubsy Date: Sun, 6 Dec 2020 18:36:52 +0100 Subject: [PATCH] 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 --- pkg/arch/dupeguru.json | 2 +- pkg/debian/Makefile | 1 + pkg/debian/dupeguru.json | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/arch/dupeguru.json b/pkg/arch/dupeguru.json index 0f83f7bd..9817da61 100644 --- a/pkg/arch/dupeguru.json +++ b/pkg/arch/dupeguru.json @@ -3,5 +3,5 @@ "longname": "dupeGuru", "execname": "dupeguru", "arch": "any", - "iconpath": "/usr/share/dupeguru/dgse_logo_128.png" + "iconpath": "dupeguru" } diff --git a/pkg/debian/Makefile b/pkg/debian/Makefile index 401c3bc9..5309f39e 100644 --- a/pkg/debian/Makefile +++ b/pkg/debian/Makefile @@ -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}" diff --git a/pkg/debian/dupeguru.json b/pkg/debian/dupeguru.json index 0f83f7bd..9817da61 100644 --- a/pkg/debian/dupeguru.json +++ b/pkg/debian/dupeguru.json @@ -3,5 +3,5 @@ "longname": "dupeGuru", "execname": "dupeguru", "arch": "any", - "iconpath": "/usr/share/dupeguru/dgse_logo_128.png" + "iconpath": "dupeguru" }