Anonymous avatar Anonymous committed d05dce7

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

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 ("pyrad.py --quit"), we close and shutdown
         args = KCmdLineArgs.parsedArgs()
-        if args.isSet("quit"):
+        if args.isSet("quit") or args.isSet("kill"):
             self.rad.close()
             self.quit()
             return 0
-        elif args.isSet("daemon"): 
+        elif args.isSet("daemon") or args.isSet("start"): 
             ret = super(KUniqueCaller, self).newInstance()
             return ret
         self.rad.setup()
     # 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 "))
     KCmdLineArgs.addCmdLineOptions(opts)
     # Then do basic initializing
     app = KUniqueCaller()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.