[gnome-shell/wip/carlosg/xwayland-startup-side-channel: 253/254] ibusManager: Drop restartDaemon() call



commit c964acf1c8e83d7140f6a2a5d962a013174fffdd
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Nov 14 23:55:21 2019 +0100

    ibusManager: Drop restartDaemon() call
    
    This will be handled differently.
    
    https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/836

 js/misc/ibusManager.js | 8 ++------
 js/ui/windowManager.js | 3 ---
 2 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/js/misc/ibusManager.js b/js/misc/ibusManager.js
index cc699c33c2..9bc94c1487 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 629fbc21ad..ea106a67b3 100644
--- a/js/ui/windowManager.js
+++ b/js/ui/windowManager.js
@@ -16,7 +16,6 @@ const EdgeDragAction = imports.ui.edgeDragAction;
 const CloseDialog = imports.ui.closeDialog;
 const SwipeTracker = imports.ui.swipeTracker;
 const SwitchMonitor = imports.ui.switchMonitor;
-const IBusManager = imports.misc.ibusManager;
 
 const { loadInterfaceXML } = imports.misc.fileUtils;
 
@@ -899,12 +898,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]