File gnome-shell-disable-ibus-when-not-installed.patch of Package gnome-shell.10843

Index: gnome-shell-3.26.0/js/misc/ibusManager.js
===================================================================
--- gnome-shell-3.26.0.orig/js/misc/ibusManager.js
+++ gnome-shell-3.26.0/js/misc/ibusManager.js
@@ -45,6 +45,10 @@ var IBusManager = new Lang.Class({
     _PRELOAD_ENGINES_DELAY_TIME: 30, // sec
 
     _init: function() {
+        let daemon = Gio.File.new_for_path('/usr/bin/ibus-daemon');
+        if (!daemon.query_exists(null))
+            return;
+
         if (!IBus)
             return;
openSUSE Build Service is sponsored by