openbsd-ports/print/system-config-printer/patches/patch-applet_py
ajacoutot 1228e6a72e - remove X-Red-Hat category for .desktop files (from jasper@)
- make the manage printer job entry appear (from jasper@)
- fix path to system-config-printer in applet.py
- use SUBST_FILES

ok jasper@
2008-06-12 21:51:42 +00:00

31 lines
1.0 KiB
Plaintext

$OpenBSD: patch-applet_py,v 1.2 2008/06/12 21:51:43 ajacoutot Exp $
--- applet.py.orig Thu Apr 3 17:54:02 2008
+++ applet.py Tue Apr 8 15:23:21 2008
@@ -31,7 +31,7 @@ import gobject
import pynotify
import time
-APPDIR="/usr/share/system-config-printer"
+APPDIR="${PREFIX}/share/system-config-printer"
DOMAIN="system-config-printer"
GLADE="applet.glade"
ICON="printer"
@@ -151,7 +151,7 @@ class NewPrinterNotification(dbus.service.Object):
pid = os.fork ()
if pid == 0:
# Child.
- cmd = "/usr/bin/system-config-printer"
+ cmd = "${PREFIX}/sbin/system-config-printer"
argv.insert (0, cmd)
os.execvp (cmd, argv)
sys.exit (1)
@@ -169,7 +169,7 @@ class NewPrinterNotification(dbus.service.Object):
pid = os.fork ()
if pid == 0:
# Child.
- argv = ["/usr/bin/system-install-packages"]
+ argv = ["/usr/bin/true"]
argv.extend (missing_pkgs)
os.execv (argv[0], argv)
sys.exit (1)