[ CCode ( cname = "xfce_sm_client_get_with_argv" , has_construct_function = false ) ]
public SMClient.get_with_argv (int argc, string argv, SMClientRestartStyle restart_style, uint8 priority)
Creates a new SMClient 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 are using Gtk or Glib's command-line option parser, it is recommended that you use get_option_group and SMClient.get instead.
| argc |
The number of arguments passed to |
| argv |
The argument vector passed to |
| restart_style | |
| priority |
A restart priority |
|
A new SMClient instance |