summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2008-03-06 22:27:55 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2008-03-06 22:27:55 +0100
commit84bb0016609612b4d1531177c7fd78d9c00afefe (patch)
treec15f5d67aa627d368ab6f56dc8541c3820bd50b3
parent6a0dc62707ed60a0965c8c784807a9e6f01cf324 (diff)
downloadportato-84bb0016609612b4d1531177c7fd78d9c00afefe.tar.gz
portato-84bb0016609612b4d1531177c7fd78d9c00afefe.tar.bz2
portato-84bb0016609612b4d1531177c7fd78d9c00afefe.zip
Use 'nofork' instead of 'nolistener'
Diffstat (limited to '')
-rwxr-xr-xportato.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/portato.py b/portato.py
index f426192..26e5b41 100755
--- a/portato.py
+++ b/portato.py
@@ -47,8 +47,8 @@ def main ():
parser.add_option("-x", "--validate", action = "store", dest = "validate", metavar="PLUGIN",
help = _("validates the given plugin xml instead of launching Portato"))
- parser.add_option("-L", "--no-listener", action = "store_true", dest = "nolistener", default = False,
- help = _("do not start listener"))
+ parser.add_option("-F", "--no-fork", "-L", action = "store_true", dest = "nofork", default = False,
+ help = _("do not fork off as root") + (" (%s)" % _("-L is deprecated")))
# run parser
(options, args) = parser.parse_args()
@@ -81,7 +81,7 @@ def main ():
print _("Validation succeeded.")
return
- elif options.nolistener or os.getuid() == 0: # start GUI
+ elif options.nofork or os.getuid() == 0: # start GUI
if options.shm:
get_listener().set_send(*options.shm)
else: