aboutsummaryrefslogtreecommitdiff
path: root/gdm-switch-user.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdm-switch-user.c')
-rw-r--r--gdm-switch-user.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gdm-switch-user.c b/gdm-switch-user.c
new file mode 100644
index 0000000..5718c31
--- /dev/null
+++ b/gdm-switch-user.c
@@ -0,0 +1,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;
+}