$OpenBSD: patch-applet_py,v 1.3 2008/07/08 09:33:21 ajacoutot Exp $
--- applet.py.orig	Wed Jul  2 15:32:52 2008
+++ applet.py	Wed Jul  2 15:33:48 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
@@ -170,7 +170,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)
