Commit b7aca078 authored by Jonas Ådahl's avatar Jonas Ådahl

Revert "launcher: simplify getting session dbus proxy"

Signals are sent to a specific ID, so we can't use "self" here. After
this revert, VT switching works again.

This reverts commit 8e22bf5b.
parent dc780d2c
......@@ -71,17 +71,26 @@ report_error_and_die (const char *prefix,
static Login1Session *
get_session_proxy (GCancellable *cancellable)
char *proxy_path;
char *session_id;
Login1Session *session_proxy;
GError *error = NULL;
if (sd_pid_get_session (getpid (), &session_id) < 0)
return NULL;
proxy_path = get_escaped_dbus_path ("/org/freedesktop/login1/session", session_id);
session_proxy = login1_session_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,
cancellable, &error);
if (!session_proxy)
report_error_and_die ("Failed getting session proxy", error);
free (proxy_path);
return session_proxy;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment