51
53
main (int argc, char **argv)
57
char *restart_argv [] = { *argv, 0 };
55
GOptionContext *context;
62
setlocale (LC_ALL, "");
59
63
bindtextdomain (GETTEXT_PACKAGE, VINO_LOCALEDIR);
60
64
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
61
65
textdomain (GETTEXT_PACKAGE);
63
gnome_program_init ("vino", VERSION,
68
session = gnome_master_client ();
70
gnome_client_set_restart_command (session, 2, restart_argv);
71
gnome_client_set_restart_style (session, GNOME_RESTART_IMMEDIATELY);
72
gnome_client_set_priority (session, 5);
73
g_signal_connect (session, "die",
74
G_CALLBACK (gtk_main_quit), NULL);
67
context = g_option_context_new (_("- VNC Server for GNOME"));
68
g_option_context_add_group (context, gtk_get_option_group (TRUE));
69
g_option_context_add_group (context, egg_sm_client_get_option_group ());
70
g_option_context_parse (context, &argc, &argv, &error);
75
_("Run 'vino-server --help' to see a full list of available command line options"));
80
client = egg_sm_client_get ();
81
g_signal_connect (client, "quit",
82
G_CALLBACK (gtk_main_quit), NULL);
76
84
vino_setup_debug_flags ();