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.
| argc |
The number of arguments passed to |
| argv |
The argument vector passed to |
| restart_style | |
| priority |
A restart priority |
|
A new SessionClient instance, or the singleton with its reference count incremented. |