diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2008-03-06 22:27:55 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2008-03-06 22:27:55 +0100 |
commit | 84bb0016609612b4d1531177c7fd78d9c00afefe (patch) | |
tree | c15f5d67aa627d368ab6f56dc8541c3820bd50b3 | |
parent | 6a0dc62707ed60a0965c8c784807a9e6f01cf324 (diff) | |
download | portato-84bb0016609612b4d1531177c7fd78d9c00afefe.tar.gz portato-84bb0016609612b4d1531177c7fd78d9c00afefe.tar.bz2 portato-84bb0016609612b4d1531177c7fd78d9c00afefe.zip |
Use 'nofork' instead of 'nolistener'
Diffstat (limited to '')
-rwxr-xr-x | portato.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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: |