diff options
| author | Eric Koegel <eric.koegel@gmail.com> | 2016-03-20 17:54:56 +0300 |
|---|---|---|
| committer | Eric Koegel <eric.koegel@gmail.com> | 2016-03-20 17:54:56 +0300 |
| commit | 7e83d5df38f248f5bfdffc2a95f10f8f7449c833 (patch) | |
| tree | a85d8bdbe86cc9731c01118dbbd97a3f387761ea /tools | |
| parent | 5d7fc7f447a5b2ea98ac5ad384e7fed3f0fbd3aa (diff) | |
| download | ConsoleKit2-7e83d5df38f248f5bfdffc2a95f10f8f7449c833.tar.gz | |
Improve documentation for XDG_RUNTIME_DIR
1) Add what it may fail with and when it was added to the docs.
2) Add a description to the man page.
3) Add it to the ck-list-sessions output
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/list-sessions.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/list-sessions.c b/tools/list-sessions.c index f69d54e..2811c42 100644 --- a/tools/list-sessions.c +++ b/tools/list-sessions.c @@ -147,6 +147,7 @@ list_session (GDBusConnection *connection, char *remote_host_name; char *creation_time; char *idle_since_hint; + char *runtime_dir; gboolean is_active; gboolean is_local; char *short_sid; @@ -189,6 +190,7 @@ list_session (GDBusConnection *connection, get_boolean (proxy, "IsLocal", &is_local); get_string (proxy, "GetCreationTime", &creation_time); get_string (proxy, "GetIdleSinceHint", &idle_since_hint); + get_string (proxy, "GetXDGRuntimeDir", &runtime_dir); realname = get_real_name (uid); @@ -202,7 +204,7 @@ list_session (GDBusConnection *connection, short_ssid = ssid + strlen (CK_PATH) + 1; } - printf ("%s:\n\tunix-user = '%d'\n\trealname = '%s'\n\tseat = '%s'\n\tsession-type = '%s'\n\tactive = %s\n\tx11-display = '%s'\n\tx11-display-device = '%s'\n\tdisplay-device = '%s'\n\tremote-host-name = '%s'\n\tis-local = %s\n\ton-since = '%s'\n\tlogin-session-id = '%s'", + printf ("%s:\n\tunix-user = '%d'\n\trealname = '%s'\n\tseat = '%s'\n\tsession-type = '%s'\n\tactive = %s\n\tx11-display = '%s'\n\tx11-display-device = '%s'\n\tdisplay-device = '%s'\n\tremote-host-name = '%s'\n\tis-local = %s\n\ton-since = '%s'\n\tlogin-session-id = '%s'\n\tXDG_RUNTIME_DIR = '%s'", short_ssid, uid, realname, @@ -215,7 +217,8 @@ list_session (GDBusConnection *connection, remote_host_name, is_local ? "TRUE" : "FALSE", creation_time, - lsid); + lsid, + runtime_dir); if (idle_since_hint != NULL && idle_since_hint[0] != '\0') { printf ("\n\tidle-since-hint = '%s'", idle_since_hint); } @@ -231,6 +234,7 @@ list_session (GDBusConnection *connection, g_free (x11_display); g_free (x11_display_device); g_free (display_device); + g_free (runtime_dir); g_object_unref (proxy); } |
