public class ApplicationFlags
extends org.freedesktop.bindings.Flag
Application
.Modifier and Type | Field and Description |
---|---|
static ApplicationFlags |
HANDLES_COMMAND_LINE
Indicate that this application handles command line arguments from
remote instances.
|
static ApplicationFlags |
HANDLES_OPEN |
static ApplicationFlags |
IS_LAUNCHER
The application will not try to become the primary instance.
|
static ApplicationFlags |
IS_SERVICE
The application run as a service.
|
static ApplicationFlags |
NON_UNIQUE
The application does not wish to model unique behaviour and does not
check for an already existing single instance.
|
static ApplicationFlags |
NONE
Default operation mode.
|
static ApplicationFlags |
SEND_ENVIRONMENT
The primary instance will receive the environment of the launching
process.
|
Modifier and Type | Method and Description |
---|---|
static ApplicationFlags |
or(ApplicationFlags one,
ApplicationFlags two) |
public static final ApplicationFlags HANDLES_COMMAND_LINE
Note that if you choose this mode, the
Application.CommandLine
signal will be raised on the
primary rather than Application.Activate
so
it's a good idea to call activate()
manually from your
Application.CommandLine
handler.
public static final ApplicationFlags HANDLES_OPEN
public static final ApplicationFlags IS_LAUNCHER
public static final ApplicationFlags IS_SERVICE
IS_LAUNCHER
, in a pair of binaries, one being server only and the
other being launcher only. When a single code base is performing the
role of becoming primary when necessary and otherwise being
remote then you want the [default] NONE
setting.public static final ApplicationFlags NON_UNIQUE
public static final ApplicationFlags NONE
singe arg
constructor.public static final ApplicationFlags SEND_ENVIRONMENT
public static ApplicationFlags or(ApplicationFlags one, ApplicationFlags two)