From 84bb0016609612b4d1531177c7fd78d9c00afefe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Thu, 6 Mar 2008 22:27:55 +0100 Subject: Use 'nofork' instead of 'nolistener' --- portato.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'portato.py') 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: -- cgit v1.2.3