public class ApplicationCommandLine extends Object
Application.CommandLine
signal of the Application
class.Modifier and Type | Method and Description |
---|---|
void |
exit()
Call this when you are finished with the ApplicationCommandLine and
wish the remote instance to exit.
|
String[] |
getArguments()
Returns the arguments of the invoking process's command line.
|
public void exit()
If subsequent invocations of your process are to act merely as
launchers, activating the primary instance and passing information,
then you will want the remote to exit as soon as possible. This method
will accomplish that; presumably you will call this from within your
Application.CommandLine
handler once you have finished
dealing with the passed command line arguments.
Do not call more than once.
Do not use this ApplicationCommandLine object further after
exit()
has been called.
WARNING
This is as yet un-implemented in GApplication. We have modelled the
necessary functionality by artificially dropping a reference count on
the GApplicationCommandLine object, but ultimately, causing the remote
to exit relies on the backing GObject being finalized. Your mileage may
vary.
public String[] getArguments()