Package ch.bailu.gtk.gio
Schnittstelle ApplicationFlags
public interface ApplicationFlags
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final intAllow another instance to take over
the bus name.static final intAllow users to override the
application ID from the command line with `--gapplication-app-id`.static final intDefault flags.static final intDefault flags.static final intThis application handles command line
arguments (in the primary instance).static final intThis application handles opening files (in
the primary instance).static final intDon't try to become the primary instance.static final intRun as a service.static final intMake no attempts to do any of the typical
single-instance application negotiation, even if the application
ID is given.static final intTake over from another instance.static final intSend the environment of the
launching process to the primary instance.
-
Felddetails
-
FLAGS_NONE
static final int FLAGS_NONEDefault flags.- Siehe auch:
-
DEFAULT_FLAGS
static final int DEFAULT_FLAGSDefault flags.- Siehe auch:
-
IS_SERVICE
static final int 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.- Siehe auch:
-
IS_LAUNCHER
static final int IS_LAUNCHERDon't try to become the primary instance.- Siehe auch:
-
HANDLES_OPEN
static final int 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
%G_APPLICATION_HANDLES_COMMAND_LINE is given.
See g_application_run() for details.- Siehe auch:
-
HANDLES_COMMAND_LINE
static final int 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 g_application_run() for details.- Siehe auch:
-
SEND_ENVIRONMENT
static final int 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 #GApplication::command-line signal handler, via
g_application_command_line_getenv().- Siehe auch:
-
NON_UNIQUE
static final int 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.- Siehe auch:
-
CAN_OVERRIDE_APP_ID
static final int CAN_OVERRIDE_APP_IDAllow users to override the
application ID from the command line with `--gapplication-app-id`.
Since: 2.48- Siehe auch:
-
ALLOW_REPLACEMENT
static final int ALLOW_REPLACEMENTAllow another instance to take over
the bus name. Since: 2.60- Siehe auch:
-
REPLACE
static final int REPLACETake over from another instance. This flag is
usually set by passing `--gapplication-replace` on the commandline.
Since: 2.60- Siehe auch:
-