fix(session): set $XDG_SESSION_TYPE properly

Author:    Nova <technobaboo@gmail.com>
Date:      Fri Jan 31 12:44:36 2025 -0800
This commit is contained in:
Nova
2025-01-31 12:44:36 -08:00
parent 9f49ba729d
commit fb1627dccc

View File

@@ -104,6 +104,7 @@ pub fn connection_env() -> FxHashMap<String, String> {
#[cfg(feature = "wayland")]
{
var_env_insert!(env, WAYLAND_DISPLAY);
env.insert("XDG_SESSION_TYPE".to_string(), "wayland".to_string());
env.insert("GDK_BACKEND".to_string(), "wayland".to_string());
env.insert("QT_QPA_PLATFORM".to_string(), "wayland".to_string());
env.insert("MOZ_ENABLE_WAYLAND".to_string(), "1".to_string());