[gnome-shell/wip/carlosg/xwayland-startup-side-channel: 1/2] ibusManager: Drop restartDaemon() call
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/xwayland-startup-side-channel: 1/2] ibusManager: Drop restartDaemon() call
- Date: Fri, 15 Nov 2019 15:33:34 +0000 (UTC)
commit 2562f4804cf9eae53415f56eee11d8cb2357009e
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Nov 14 23:55:21 2019 +0100
ibusManager: Drop restartDaemon() call
This will be handled differently.
js/misc/ibusManager.js | 8 ++------
js/ui/windowManager.js | 2 --
2 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/js/misc/ibusManager.js b/js/misc/ibusManager.js
index e43f88c7ce..cf72ac161c 100644
--- a/js/misc/ibusManager.js
+++ b/js/misc/ibusManager.js
@@ -58,19 +58,15 @@ var IBusManager = class {
this._spawn();
}
- _spawn(extraArgs = []) {
+ _spawn() {
try {
- let cmdLine = ['ibus-daemon', '--panel', 'disable', ...extraArgs];
+ let cmdLine = ['ibus-daemon', '--panel', 'disable'];
Gio.Subprocess.new(cmdLine, Gio.SubprocessFlags.NONE);
} catch (e) {
log(`Failed to launch ibus-daemon: ${e.message}`);
}
}
- restartDaemon(extraArgs = []) {
- this._spawn(['-r', ...extraArgs]);
- }
-
_clear() {
if (this._cancellable) {
this._cancellable.cancel();
diff --git a/js/ui/windowManager.js b/js/ui/windowManager.js
index c19043faeb..6ba3c965b7 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -1044,12 +1044,10 @@ var WindowManager = class {
});
global.display.connect('x11-display-opened', () => {
- IBusManager.getIBusManager().restartDaemon(['--xim']);
Shell.util_start_systemd_unit('gnome-session-x11-services.target', 'fail');
});
global.display.connect('x11-display-closing', () => {
Shell.util_stop_systemd_unit('gnome-session-x11-services.target', 'fail');
- IBusManager.getIBusManager().restartDaemon();
});
Main.overview.connect('showing', () => {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]