new_with_argv


Description:

public static SessionClient new_with_argv (int argc, string argv, SessionClientRestartStyle restart_style, uint8 priority)

Creates a new SessionClient instance.

It attempts to set all required properties using the app's command line. Note that this function does not actually connect to the session manager, so other actions can be taken (such as setting custom properties or connecting signals) before calling connect.

If you have already created an SessionClient instance using any of the "new" functions, this will return a new reference to the same instance, ignoring any arguments passed.

If you are using Gtk or Glib's command-line option parser, it is recommended that you use get_option_group and @new instead.

Parameters:

argc

The number of arguments passed to main

argv

The argument vector passed to main

restart_style

An SessionClientRestartStyle

priority

A restart priority

Returns:

A new SessionClient instance, or the singleton with its reference count incremented.