diff --git a/src/main-view/index.js b/src/main-view/index.js index f1a26c0..2c755d8 100644 --- a/src/main-view/index.js +++ b/src/main-view/index.js @@ -64,7 +64,9 @@ class MainView extends Adw.Bin { } warnAboutWayland() { - if (GLib.getenv('XDG_SESSION_TYPE').toLowerCase() !== 'wayland') { + const sessionType = GLib.getenv('XDG_SESSION_TYPE'); + + if (!sessionType || sessionType.toLowerCase() !== 'wayland') { return; }