63
63
/* Keep all config options for compatibility even if they are noops */
64
64
GOptionEntry options [] = {
65
{ "command", 'c', 0, G_OPTION_ARG_STRING, &send_command, "Only the VERSION command is supported", "COMMAND" },
66
{ "xnest", 'n', 0, G_OPTION_ARG_NONE, &use_xnest, "Ignored — retained for compatibility", NULL },
67
{ "no-lock", 'l', 0, G_OPTION_ARG_NONE, &no_lock, "Ignored — retained for compatibility", NULL },
68
{ "debug", 'd', 0, G_OPTION_ARG_NONE, &debug_in, "Debugging output", NULL },
69
{ "authenticate", 'a', 0, G_OPTION_ARG_NONE, &authenticate, "Ignored — retained for compatibility", NULL },
70
{ "startnew", 's', 0, G_OPTION_ARG_NONE, &startnew, "Ignored — retained for compatibility", NULL },
65
{ "command", 'c', 0, G_OPTION_ARG_STRING, &send_command, N_("Only the VERSION command is supported"), N_("COMMAND") },
66
{ "xnest", 'n', 0, G_OPTION_ARG_NONE, &use_xnest, N_("Ignored — retained for compatibility"), NULL },
67
{ "no-lock", 'l', 0, G_OPTION_ARG_NONE, &no_lock, N_("Ignored — retained for compatibility"), NULL },
68
{ "debug", 'd', 0, G_OPTION_ARG_NONE, &debug_in, N_("Debugging output"), NULL },
69
{ "authenticate", 'a', 0, G_OPTION_ARG_NONE, &authenticate, N_("Ignored — retained for compatibility"), NULL },
70
{ "startnew", 's', 0, G_OPTION_ARG_NONE, &startnew, N_("Ignored — retained for compatibility"), NULL },
71
71
{ "monte-carlo-pi", 0, 0, G_OPTION_ARG_NONE, &monte_carlo_pi, NULL, NULL },
72
{ "version", 0, 0, G_OPTION_ARG_NONE, &show_version, "Version of this application", NULL },
72
{ "version", 0, 0, G_OPTION_ARG_NONE, &show_version, N_("Version of this application"), NULL },
73
73
{ G_OPTION_REMAINING, 0, 0, G_OPTION_ARG_STRING_ARRAY, &args_remaining, NULL, NULL },
444
444
seat_id = get_current_seat_id (connection);
445
445
if (seat_id == NULL || seat_id[0] == '\0') {
446
446
g_debug ("seat id is not set; can't switch sessions");
447
g_set_error (error, GDM_FLEXISERVER_ERROR, 0, "Could not identify the current session.");
447
g_set_error (error, GDM_FLEXISERVER_ERROR, 0, _("Could not identify the current session."));
452
452
res = get_login_window_session_id_for_ck (connection, seat_id, &session_id);
454
g_set_error (error, GDM_FLEXISERVER_ERROR, 1, "User unable to switch sessions.");
454
g_set_error (error, GDM_FLEXISERVER_ERROR, 1, _("User unable to switch sessions."));