main: Set XDG_CURRENT_DESKTOP to gamescope

A proper session will already do this from eg. SDDM, but when running nested, we want this to still be present.
This commit is contained in:
Joshua Ashton 2022-10-19 15:41:04 +01:00
parent 98d61844d8
commit 4e748ba1e5

View file

@ -558,6 +558,7 @@ int main(int argc, char **argv)
setenv("DISPLAY", base_server->get_nested_display_name(), 1);
setenv("XDG_SESSION_TYPE", "x11", 1);
setenv("XDG_CURRENT_DESKTOP", "gamescope", 1);
if (g_nXWaylandCount > 1)
{
for (int i = 1; i < g_nXWaylandCount; i++)