slackware-current/testing/source/vtown/input-methods/fcitx/fcitx-autostart.patch
Patrick J Volkerding 042736eeb5 Wed Nov 25 23:25:45 UTC 2020
ap/qpdf-10.0.4-x86_64-1.txz:  Upgraded.
d/cmake-3.19.1-x86_64-1.txz:  Upgraded.
n/bind-9.16.9-x86_64-1.txz:  Upgraded.
  This update fixes bugs, including a denial-of-service security issue:
  After a Negative Trust Anchor (NTA) is added, BIND performs periodic
  checks to see if it is still necessary. If BIND encountered a failure
  while creating a query to perform such a check, it attempted to
  dereference a NULL pointer, resulting in a crash. [GL #2244]
  (* Security fix *)
n/cifs-utils-6.11-x86_64-2.txz:  Rebuilt.
  Patched to fix mounting CIFS shares when linked with libcap-ng-0.8.1.
  Thanks to marrowsuck.
2020-11-26 08:59:52 +01:00

30 lines
519 B
Diff

--- fcitx-autostart.orig 2017-03-26 17:58:45.586105103 +0200
+++ fcitx-autostart 2017-03-26 17:59:09.693105345 +0200
@@ -1,4 +1,26 @@
-#!/bin/sh
+#!/bin/bash
+
+START="no"
+
+if [ "$XIM" = "fcitx" ]; then
+ START="yes"
+fi
+
+if [ "$XIM_PROGRAM" = "fcitx" ]; then
+ START="yes"
+fi
+
+if [ "$GTK_IM_MODULE" = "fcitx" ]; then
+ START="yes"
+fi
+
+if [ "$QT_IM_MODULE" = "fcitx" ]; then
+ START="yes"
+fi
+
+if [ "$START" = "no" ]; then
+ exit 0
+fi
# sleep for a little while to avoid duplicate startup
sleep 2