diff options
Diffstat (limited to 'source/ap')
-rw-r--r-- | source/ap/hplip/fix-desktop-file.patch | 13 | ||||
-rwxr-xr-x | source/ap/hplip/hplip.SlackBuild | 5 |
2 files changed, 17 insertions, 1 deletions
diff --git a/source/ap/hplip/fix-desktop-file.patch b/source/ap/hplip/fix-desktop-file.patch new file mode 100644 index 000000000..050e9aa85 --- /dev/null +++ b/source/ap/hplip/fix-desktop-file.patch @@ -0,0 +1,13 @@ +diff -Nur hplip-3.20.6.orig/hp-uiscan.desktop.in hplip-3.20.6/hp-uiscan.desktop.in +--- hplip-3.20.6.orig/hp-uiscan.desktop.in 2020-06-09 06:20:52.000000000 -0500 ++++ hplip-3.20.6/hp-uiscan.desktop.in 2021-02-28 23:02:12.015266747 -0600 +@@ -3,6 +3,7 @@ + Version=1.0 + Type=Application + Terminal=false +-Name=hp-uiscan ++Name=HP Scan Utility + Exec=/usr/bin/hp-uiscan +-Icon=/usr/share/icons/Humanity/devices/48/printer.svg ++Categories=Application;Utility; ++Icon=@abs_datadir@/hplip/data/images/128x128/hp_logo.png diff --git a/source/ap/hplip/hplip.SlackBuild b/source/ap/hplip/hplip.SlackBuild index ba5a1c5a2..a33b2c8a2 100755 --- a/source/ap/hplip/hplip.SlackBuild +++ b/source/ap/hplip/hplip.SlackBuild @@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd) PKGNAM=hplip VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)} -BUILD=${BUILD:-6} +BUILD=${BUILD:-7} NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "} @@ -83,6 +83,9 @@ zcat $CWD/setup.py.lc_all.c.diff.gz | patch -p1 --verbose || exit 1 # Fix a few .py files lacking #!/usr/bin/python3: zcat $CWD/hplip.python3.shebang.diff.gz | patch -p1 --verbose || exit 1 +# Fix the desktop file to show correct icon and category +zcat $CWD/fix-desktop-file.patch.gz | patch -p1 --verbose || exit 1 + # Choose correct options depending on whether PAM is installed: if [ -L /lib${LIBDIRSUFFIX}/libpam.so.? ]; then unset SHADOW_OPTIONS |