Arne Babenhauserheide  committed d05dce7

--kill and --start are now equivalent to --quit and --daemon (to be consistent with pulseaudio).

  • Participants
  • Parent commits f050293

Comments (0)

Files changed (1)

         """Get a new instance -> in reality only check if there's already an instance and tell the GUI to run."""
         # if we get the quit arg (" --quit"), we close and shutdown
         args = KCmdLineArgs.parsedArgs()
-        if args.isSet("quit"):
+        if args.isSet("quit") or args.isSet("kill"):
             return 0
-        elif args.isSet("daemon"): 
+        elif args.isSet("daemon") or args.isSet("start"): 
             ret = super(KUniqueCaller, self).newInstance()
             return ret
     # Add an option to quit the app
     opts = KCmdLineOptions()
     opts.add("quit", ki18n("Shutdown the background program"))
+    opts.add("kill", ki18n("Shutdown the background program"))
     opts.add("daemon", ki18n("Start the background program without showing the GUI "))
+    opts.add("start", ki18n("Start the background program without showing the GUI "))
     # Then do basic initializing
     app = KUniqueCaller()