Interface ApplicationFlags


public interface ApplicationFlags
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Allow another instance to take over
    the bus name.
    static final int
    Allow users to override the
    application ID from the command line with `--gapplication-app-id`.
    static final int
    Default flags.
    static final int
    Default.
    static final int
    This application handles command line
    arguments (in the primary instance).
    static final int
    This application handles opening files (in
    the primary instance).
    static final int
    Don't try to become the primary instance.
    static final int
    Run as a service.
    static final int
    Make no attempts to do any of the typical
    single-instance application negotiation, even if the application
    ID is given.
    static final int
    Take over from another instance.
    static final int
    Send the environment of the
    launching process to the primary instance.
  • Field Details

    • FLAGS_NONE

      static final int FLAGS_NONE
      Default. Deprecated in 2.74, use
      %G_APPLICATION_DEFAULT_FLAGS instead
      See Also:
    • DEFAULT_FLAGS

      static final int DEFAULT_FLAGS
      Default flags. Since: 2.74
      See Also:
    • IS_SERVICE

      static final int IS_SERVICE
      Run 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.
      See Also:
    • IS_LAUNCHER

      static final int IS_LAUNCHER
      Don't try to become the primary instance.
      See Also:
    • HANDLES_OPEN

      static final int HANDLES_OPEN
      This 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.
      See Also:
    • HANDLES_COMMAND_LINE

      static final int HANDLES_COMMAND_LINE
      This 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.
      See Also:
    • SEND_ENVIRONMENT

      static final int SEND_ENVIRONMENT
      Send 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().
      See Also:
    • NON_UNIQUE

      static final int NON_UNIQUE
      Make 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.
      See Also:
    • CAN_OVERRIDE_APP_ID

      static final int CAN_OVERRIDE_APP_ID
      Allow users to override the
      application ID from the command line with `--gapplication-app-id`.
      Since: 2.48
      See Also:
    • ALLOW_REPLACEMENT

      static final int ALLOW_REPLACEMENT
      Allow another instance to take over
      the bus name. Since: 2.60
      See Also:
    • REPLACE

      static final int REPLACE
      Take over from another instance. This flag is
      usually set by passing `--gapplication-replace` on the commandline.
      Since: 2.60
      See Also: