~ubuntu-branches/ubuntu/trusty/im-config/trusty

« back to all changes in this revision

Viewing changes to debian/patches/01_modify_system_default.patch

  • Committer: Package Import Robot
  • Author(s): Gunnar Hjalmarsson
  • Date: 2013-10-04 03:07:00 UTC
  • mfrom: (19.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20131004030700-5sz4cpvdo0rvwxm2
Tags: 0.21ubuntu4
debian/patches/01_modify_system_default.patch:
Change the system default on Unity from "cjkv" to "auto" to make
ibus work by default with the Text Entry tab in
gnome-control-center also when a non-cjkv language is the current
display language (LP: #1234768).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Modify the system default
 
2
 While the upstream default "auto" is believed to work best together with the
 
3
 "Text Entry" tab in gnome-control-center, "cjkv" makes sure on non-Unity
 
4
 desktops that the ibus indicator is not shown by default for all users.
 
5
Bug-Ubuntu: https://launchpad.net/bugs/1234768
 
6
Author: Gunnar Hjalmarsson <gunnarhj@ubuntu.com>
 
7
Forwarded: not-needed
 
8
 
 
9
Index: im-config/default/im-config
 
10
===================================================================
 
11
--- im-config.orig/default/im-config    2013-04-10 12:32:37.000000000 +0200
 
12
+++ im-config/default/im-config 2013-10-04 01:34:57.012504149 +0200
 
13
@@ -1,9 +1,12 @@
 
14
 # Deault im-config mode (see im-config(8))
 
15
 
 
16
-# Always start best input method
 
17
-IM_CONFIG_DEFAULT_MODE=auto
 
18
-# Start best input method only if CJKV environment
 
19
-#IM_CONFIG_DEFAULT_MODE=cjkv
 
20
+if [ $XDG_CURRENT_DESKTOP -a $XDG_CURRENT_DESKTOP = "Unity" ]; then
 
21
+    # Always start best input method
 
22
+    IM_CONFIG_DEFAULT_MODE=auto
 
23
+else
 
24
+    # Start best input method only if CJKV environment
 
25
+    IM_CONFIG_DEFAULT_MODE=cjkv
 
26
+fi
 
27
 
 
28
 # Trace commands for debug
 
29
 # (This may cause problem configuration file generated under console mode)