Skip to content

Commit

Permalink
env: move XDG_SESSION_TYPE to before backend init (#9390)
Browse files Browse the repository at this point in the history
  • Loading branch information
nnyyxxxx authored Feb 12, 2025
1 parent f83fe99 commit 68bb3e7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/Compositor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,6 @@ void CCompositor::initServer(std::string socketName, int socketFd) {
}

setenv("WAYLAND_DISPLAY", m_szWLDisplaySocket.c_str(), 1);
setenv("XDG_SESSION_TYPE", "wayland", 1);
if (!getenv("XDG_CURRENT_DESKTOP")) {
setenv("XDG_CURRENT_DESKTOP", "Hyprland", 1);
m_bDesktopEnvSet = true;
Expand Down
1 change: 1 addition & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ int main(int argc, char** argv) {

setenv("HYPRLAND_CMD", cmd.c_str(), 1);
setenv("XDG_BACKEND", "wayland", 1);
setenv("XDG_SESSION_TYPE", "wayland", 1);
setenv("_JAVA_AWT_WM_NONREPARENTING", "1", 1);
setenv("MOZ_ENABLE_WAYLAND", "1", 1);

Expand Down

0 comments on commit 68bb3e7

Please sign in to comment.