SMClient.get_with_argv


Description:

[ 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.

Parameters:

argc

The number of arguments passed to main

argv

The argument vector passed to main

restart_style

An SMClientRestartStyle

priority

A restart priority

Returns:

A new SMClient instance