Skip to content

Commit

Permalink
Set the logind session type
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanGriffiths authored and z3ntu committed Nov 4, 2023
1 parent c651528 commit 4da9233
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server/console/logind_console_services.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,11 @@ mir::LogindConsoleServices::LogindConsoleServices(std::shared_ptr<mir::GLibMainL
std::string{"Logind TakeControl call failed: "} + error_msg}));
}

if (!logind_session_call_set_type_sync(session_proxy.get(), "wayland", nullptr, &error))
{
mir::log_debug("Failed to set logind session type: %s", error ? error->message : "unknown error");
}

g_signal_connect(
G_OBJECT(session_proxy.get()),
"notify::active",
Expand Down

0 comments on commit 4da9233

Please sign in to comment.