Skip to content

Commit 4da9233

Browse files
AlanGriffithsz3ntu
authored andcommitted
Set the logind session type
1 parent c651528 commit 4da9233

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/server/console/logind_console_services.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,11 @@ mir::LogindConsoleServices::LogindConsoleServices(std::shared_ptr<mir::GLibMainL
266266
std::string{"Logind TakeControl call failed: "} + error_msg}));
267267
}
268268

269+
if (!logind_session_call_set_type_sync(session_proxy.get(), "wayland", nullptr, &error))
270+
{
271+
mir::log_debug("Failed to set logind session type: %s", error ? error->message : "unknown error");
272+
}
273+
269274
g_signal_connect(
270275
G_OBJECT(session_proxy.get()),
271276
"notify::active",

0 commit comments

Comments
 (0)