ports/print/system-config-printer/files/patch-applet.py
2008-05-27 06:31:37 +00:00

29 lines
901 B
Python

--- applet.py.orig 2008-05-23 04:57:31.000000000 -0700
+++ applet.py 2008-05-26 23:23:31.512688566 -0700
@@ -43,7 +43,7 @@
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 @@
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 @@
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)