Skip to content

Commit e16da80

Browse files
committed
Don't rely on environmental variable to determine session type
1 parent 86cbe62 commit e16da80

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/WindowManager.vala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,7 @@ namespace Gala {
296296
// Most things inside this "later" depend on GTK. We get segfaults if we try to do GTK stuff before the window manager
297297
// is initialized, so we hold this stuff off until we're ready to draw
298298
laters.add (Meta.LaterType.BEFORE_REDRAW, () => {
299-
unowned string xdg_session_type = Environment.get_variable ("XDG_SESSION_TYPE");
300-
if (xdg_session_type == "x11") {
299+
if (!Meta.Util.is_wayland_compositor ()) {
301300
string[] args = {};
302301
unowned string[] _args = args;
303302
Gtk.init (ref _args);

0 commit comments

Comments
 (0)