Fix hp-uiscan desktop file.

OK aja@ (maintainer)
This commit is contained in:
kirby 2020-11-09 12:38:27 +00:00
parent 4d8b2c8b2a
commit 68e0746b58
2 changed files with 18 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.185 2020/10/11 15:45:31 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.186 2020/11/09 12:38:27 kirby Exp $
PORTROACH= skipv:${V}_py2.5
@ -15,7 +15,7 @@ SUBST_VARS= V
REVISION-main= 0
REVISION-common= 0
REVISION-gui= 0
REVISION-gui= 1
# https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1745383
MASTER_SITES0= https://src.fedoraproject.org/rpms/hplip/raw/master/f/
@ -180,6 +180,7 @@ pre-configure:
${WRKSRC}/fax/filters/pstotiff
${SUBST_CMD} \
${WRKSRC}/Makefile.in \
${WRKSRC}/hp-uiscan.desktop.in \
${WRKSRC}/prnt/cups.py \
${WRKSRC}/prnt/filters/hpps \
${WRKSRC}/prnt/hpcups/HPCupsFilter.cpp \

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-hp-uiscan_desktop_in,v 1.1 2020/11/09 12:38:27 kirby Exp $
# Bug report https://bugs.launchpad.net/hplip/+bug/1833510
Index: hp-uiscan.desktop.in
--- hp-uiscan.desktop.in.orig
+++ hp-uiscan.desktop.in
@@ -4,5 +4,6 @@ Version=1.0
Type=Application
Terminal=false
Name=hp-uiscan
-Exec=/usr/bin/hp-uiscan
-Icon=/usr/share/icons/Humanity/devices/48/printer.svg
+Exec=${PREFIX}/bin/hp-uiscan
+Icon=@abs_datadir@/hplip/data/images/128x128/hp_logo.png
+Categories=Graphics;Scanning