mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-25 17:21:54 -07:00
env: move XDG_SESSION_TYPE to before backend init (#9390)
This commit is contained in:
@@ -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;
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user