Flags used to define the behaviour of a
<GApplication>.
flags-noneDefault flags.
default-flagsDefault flags.
is-serviceRun as a service. In this mode, registration fails if the service is already running, and the application will initially wait up to 10 seconds for an initial activation message to arrive.
is-launcherDon’t try to become the primary instance.
handles-openThis application handles opening files (in the primary instance). Note
that this flag only affects the default implementation of
local_command_line(), and has no effect if
handles-command-line is given. See
application:run for details.
handles-command-lineThis application handles command line arguments (in the primary
instance). Note that this flag only affect the default implementation
of local_command_line(). See application:run for details.
send-environmentSend the environment of the launching process to the primary instance.
Set this flag if your application is expected to behave differently
depending on certain environment variables. For instance, an editor
might be expected to use the GIT_COMMITTER_NAME environment
variable when editing a git commit message. The environment is
available to the application:command-line signal handler, via
application-command-line:getenv.
non-uniqueMake no attempts to do any of the typical single-instance application negotiation, even if the application ID is given. The application neither attempts to become the owner of the application ID nor does it check if an existing owner already exists. Everything occurs in the local process. Since: 2.30.
can-override-app-idAllow users to override the application ID from the command line with
--gapplication-app-id. Since: 2.48
allow-replacementAllow another instance to take over the bus name. Since: 2.60
replaceTake over from another instance. This flag is usually set by passing
--gapplication-replace on the commandline. Since: 2.60