diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2016-01-27 20:22:49 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2016-01-27 20:22:49 +0100 |
commit | 2825c899617cefc872198296f83572ec3504db93 (patch) | |
tree | cea42879f0cb488950576827ea87088bac4ab213 /gdm-switch-user.c | |
parent | 99081814671c28f30540e81af7ae73096ba4b9e0 (diff) | |
download | desktop-tools-2825c899617cefc872198296f83572ec3504db93.tar.gz desktop-tools-2825c899617cefc872198296f83572ec3504db93.tar.xz desktop-tools-2825c899617cefc872198296f83572ec3504db93.zip |
Add gdm-switch-user, run by dwmstatus
Diffstat (limited to 'gdm-switch-user.c')
-rw-r--r-- | gdm-switch-user.c | 17 |
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; +} |