gnome-shell/gnome-shell-disable-ibus-when-not-installed.patch
Dominique Leuenberger 004d2d020d Accepting request 1184215 from GNOME:Next
- Update to version 46.3.1:
  + Fix including gvc source in tarball
- Changes from version 46.3:
  + Fix rendering artifacts of some rounded borders
  + Fix overview animation glitch when windows overlap workspaces
  + Misc. bug fixes and cleanups
  + Updated translations.
- Add gvc (libgnome-volume-control) submodule to _service file and
  inject subproject into the source directory. This is not tracked
  as git submodules, so the regular 'git submodule' service
  parameter is ineffective here.

  + Misc. bug fixes and cleanups (bsc#1215485 CVE-2023-43090).

OBS-URL: https://build.opensuse.org/request/show/1184215
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-shell?expand=0&rev=578
2024-07-01 08:59:56 +00:00

36 lines
1.2 KiB
Diff

From 29dfda2d2f77d14e27cc27cbba1e41ec0363cf83 Mon Sep 17 00:00:00 2001
From: Xiaoguang Wang <xwang@suse.com>
Date: Thu, 9 Apr 2020 11:16:56 +0800
Subject: [PATCH] Disable ibus when out of CJK
---
js/misc/ibusManager.js | 8 ++++++++
1 file changed, 8 insertions(+)
Index: gnome-shell-45.0/js/misc/ibusManager.js
===================================================================
--- gnome-shell-45.0.orig/js/misc/ibusManager.js
+++ gnome-shell-45.0/js/misc/ibusManager.js
@@ -59,6 +59,10 @@ class IBusManager extends Signals.EventE
constructor() {
super();
+ let daemon = Gio.File.new_for_path('/usr/bin/ibus-daemon');
+ if (!daemon.query_exists(null))
+ return;
+
IBus.init();
// This is the longest we'll keep the keyboard frozen until an input
@@ -114,6 +118,10 @@ class IBusManager extends Signals.EventE
}
_spawn(extraArgs = []) {
+ let daemon = Gio.File.new_for_path('/usr/bin/ibus-daemon');
+ if (!daemon.query_exists(null))
+ return;
+
try {
const cmdLine = ['ibus-daemon', '--panel', 'disable', ...extraArgs];
const launchContext = global.create_app_launch_context(0, -1);