openbsd-ports/print/hplip/patches/patch-ui4_nodevicesdialog_py
2010-11-05 08:21:22 +00:00

22 lines
830 B
Plaintext

$OpenBSD: patch-ui4_nodevicesdialog_py,v 1.2 2010/11/05 08:21:22 ajacoutot Exp $
--- ui4/nodevicesdialog.py.orig Sun Sep 26 19:07:19 2010
+++ ui4/nodevicesdialog.py Fri Nov 5 09:14:47 2010
@@ -53,7 +53,7 @@ class NoDevicesDialog(QDialog, Ui_NoDevicesDialog_base
if utils.which('hp-setup'):
cmd = 'hp-setup -u'
else:
- cmd = 'python ./setup.py -u'
+ cmd = '${MODPY_BIN} ./setup.py -u'
log.debug(cmd)
utils.run(cmd, log_output=True, password_func=None, timeout=1)
@@ -71,7 +71,7 @@ class NoDevicesDialog(QDialog, Ui_NoDevicesDialog_base
def CUPSButton_clicked(self):
self.close()
- utils.openURL("http://localhost:631/admin?op=add-printer")
+ utils.openURL("http://localhost:631/admin/")
def CloseButton_clicked(self):