1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// Public domain #include <gdm-user-switching.h> int main (int argc, char *argv[]) { (void) argc; (void) argv; GError *e = NULL; if (!gdm_goto_login_session_sync (g_cancellable_new (), &e)) { g_printerr ("%s\n", e->message); return 1; } return 0; }