31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
$OpenBSD: patch-applet_py,v 1.4 2008/10/27 13:29:13 ajacoutot Exp $
|
|
--- applet.py.orig Tue Oct 21 11:02:45 2008
|
|
+++ applet.py Mon Oct 27 14:30:20 2008
|
|
@@ -43,7 +43,7 @@ except locale.Error, e:
|
|
os.environ['LC_ALL'] = 'C'
|
|
locale.setlocale (locale.LC_ALL, "")
|
|
|
|
-APPDIR="/usr/share/system-config-printer"
|
|
+APPDIR="${PREFIX}/share/system-config-printer"
|
|
DOMAIN="system-config-printer"
|
|
GLADE="applet.glade"
|
|
ICON="printer"
|
|
@@ -61,7 +61,7 @@ class NewPrinterNotification(dbus.service.Object):
|
|
STATUS_GENERIC_DRIVER = 2
|
|
STATUS_NO_DRIVER = 3
|
|
|
|
- INSTALL_PACKAGES_COMMAND="/usr/bin/system-install-packages"
|
|
+ INSTALL_PACKAGES_COMMAND="/usr/bin/true"
|
|
|
|
def __init__ (self, bus):
|
|
self.bus = bus
|
|
@@ -173,7 +173,7 @@ class NewPrinterNotification(dbus.service.Object):
|
|
pid = os.fork ()
|
|
if pid == 0:
|
|
# Child.
|
|
- cmd = "/usr/bin/system-config-printer"
|
|
+ cmd = "${PREFIX}/bin/system-config-printer"
|
|
argv.insert (0, cmd)
|
|
os.execvp (cmd, argv)
|
|
sys.exit (1)
|