env: move XDG_SESSION_TYPE to before backend init (#9390)
This commit is contained in:
parent
f83fe9986b
commit
68bb3e7f0a
2 changed files with 1 additions and 1 deletions
|
|
@ -386,7 +386,6 @@ void CCompositor::initServer(std::string socketName, int socketFd) {
|
||||||
}
|
}
|
||||||
|
|
||||||
setenv("WAYLAND_DISPLAY", m_szWLDisplaySocket.c_str(), 1);
|
setenv("WAYLAND_DISPLAY", m_szWLDisplaySocket.c_str(), 1);
|
||||||
setenv("XDG_SESSION_TYPE", "wayland", 1);
|
|
||||||
if (!getenv("XDG_CURRENT_DESKTOP")) {
|
if (!getenv("XDG_CURRENT_DESKTOP")) {
|
||||||
setenv("XDG_CURRENT_DESKTOP", "Hyprland", 1);
|
setenv("XDG_CURRENT_DESKTOP", "Hyprland", 1);
|
||||||
m_bDesktopEnvSet = true;
|
m_bDesktopEnvSet = true;
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@ int main(int argc, char** argv) {
|
||||||
|
|
||||||
setenv("HYPRLAND_CMD", cmd.c_str(), 1);
|
setenv("HYPRLAND_CMD", cmd.c_str(), 1);
|
||||||
setenv("XDG_BACKEND", "wayland", 1);
|
setenv("XDG_BACKEND", "wayland", 1);
|
||||||
|
setenv("XDG_SESSION_TYPE", "wayland", 1);
|
||||||
setenv("_JAVA_AWT_WM_NONREPARENTING", "1", 1);
|
setenv("_JAVA_AWT_WM_NONREPARENTING", "1", 1);
|
||||||
setenv("MOZ_ENABLE_WAYLAND", "1", 1);
|
setenv("MOZ_ENABLE_WAYLAND", "1", 1);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue