launcher: Get session proxy earlier
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4022>
This commit is contained in:
parent
32b7eae80c
commit
302fb21a68
@ -441,6 +441,10 @@ meta_launcher_new (MetaBackend *backend,
|
||||
g_autofree char *seat_id = NULL;
|
||||
gboolean have_control = FALSE;
|
||||
|
||||
session_proxy = get_session_proxy (fallback_session_id, NULL, error);
|
||||
if (!session_proxy)
|
||||
return NULL;
|
||||
|
||||
seat_id = get_seat_id (&local_error);
|
||||
if (!seat_id)
|
||||
{
|
||||
@ -461,10 +465,6 @@ meta_launcher_new (MetaBackend *backend,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
session_proxy = get_session_proxy (fallback_session_id, NULL, error);
|
||||
if (!session_proxy)
|
||||
return NULL;
|
||||
|
||||
if (!meta_dbus_login1_session_call_take_control_sync (session_proxy,
|
||||
FALSE,
|
||||
NULL,
|
||||
|
Loading…
x
Reference in New Issue
Block a user