ibusManager: Don't use GNOME_SETUP_DISPLAY

GNOME_SETUP_DISPLAY is only necessary when using xwayland on demand,
which is only supported on systemd, in which case you should consider
using the user service provided by ibus.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2345>
This commit is contained in:
oreo639 2022-07-01 12:16:56 -07:00 committed by Florian Müllner
parent 47a499bdc4
commit 4097f9f836

View File

@ -93,12 +93,8 @@ var IBusManager = class {
_spawn(extraArgs = []) {
try {
let cmdLine = ['ibus-daemon', '--panel', 'disable', ...extraArgs];
// Forward the right X11 Display for ibus-x11
let display = GLib.getenv('GNOME_SETUP_DISPLAY');
let env = [];
if (display)
env.push('DISPLAY=%s'.format(display));
GLib.spawn_async(
null, cmdLine, env,
GLib.SpawnFlags.SEARCH_PATH,