[gnome] Update extensions for v46
This commit is contained in:
@ -99,13 +99,7 @@ for (const path of [Config.CACHEDIR, Config.CONFIGDIR, Config.RUNTIMEDIR])
|
||||
GLib.mkdir_with_parents(path, 0o755);
|
||||
|
||||
|
||||
/**
|
||||
* Check if we're in a Wayland session (mostly for input synthesis)
|
||||
* https://wiki.gnome.org/Accessibility/Wayland#Bugs.2FIssues_We_Must_Address
|
||||
*/
|
||||
globalThis.HAVE_REMOTEINPUT = GLib.getenv('GDMSESSION') !== 'ubuntu-wayland';
|
||||
globalThis.HAVE_WAYLAND = GLib.getenv('XDG_SESSION_TYPE') === 'wayland';
|
||||
globalThis.HAVE_GNOME = GLib.getenv('GNOME_SETUP_DISPLAY') !== null;
|
||||
globalThis.HAVE_GNOME = GLib.getenv('GSCONNECT_MODE')?.toLowerCase() !== 'cli' && (GLib.getenv('GNOME_SETUP_DISPLAY') !== null || GLib.getenv('XDG_CURRENT_DESKTOP')?.toUpperCase()?.includes('GNOME') || GLib.getenv('XDG_SESSION_DESKTOP')?.toLowerCase() === 'gnome');
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user