1 --- imsettings-1.8.1/data/imsettings-functions.in.orig 2019-02-20 05:57:23.000000000 +0100
2 +++ imsettings-1.8.1/data/imsettings-functions.in 2019-05-20 20:46:25.377483510 +0200
4 LOGDIR="${XDG_CACHE_HOME:-$HOME/.cache}/imsettings"
9 if [ ! -n "$DRY_RUN" ]; then
10 if [ -f $HOME/.imsettings.log ]; then
11 mv $HOME/.imsettings.log $LOGFILE.bak
21 -function is_dbus_enabled() {
23 @libexecdir[@]/imsettings-check --check-dbus
27 -function is_imsettings_enabled() {
28 +is_imsettings_enabled() {
29 [ -z "$DISABLE_IMSETTINGS" ] && is_dbus_enabled
32 -function check_imsettings_capability() {
33 +check_imsettings_capability() {
35 @libexecdir[@]/imsettings-check --check-modules >/dev/null
41 -function lookup_desktop() {
50 -function get_desktop() {
52 if [ -n "$XDG_CURRENT_DESKTOP" ]; then
53 GUESS_DESKTOP="\$XDG_CURRENT_DESKTOP"
54 echo "$XDG_CURRENT_DESKTOP"
59 -function is_gtk_supported() {
61 [ -n "$IMSETTINGS_DISABLE_DESKTOP_CHECK" ] && return 0
62 case "$(get_desktop|tr '[A-Z]' '[a-z]')" in
68 -function is_qt_supported() {
70 [ -n "$IMSETTINGS_DISABLE_DESKTOP_CHECK" ] && return 0
71 case "$(get_desktop|tr '[A-Z]' '[a-z]')" in
77 -function is_xim_supported() {
79 [ -n "$IMSETTINGS_DISABLE_DESKTOP_CHECK" ] && return 0
80 if check_imsettings_capability xim; then
86 -function is_desktop_supported() {
87 +is_desktop_supported() {
88 @libexecdir[@]/imsettings-check --check-desktop $(get_desktop) >/dev/null
92 -function setup_gtk_immodule() {
93 +setup_gtk_immodule() {
94 if is_imsettings_enabled && is_gtk_supported; then
95 # Ensure GTK_IM_MODULE is empty. otherwise GTK+ doesn't pick up immodule through XSETTINGS
101 -function setup_qt_immodule() {
102 +setup_qt_immodule() {
103 if is_imsettings_enabled && is_qt_supported; then
104 # FIXME: Qt doesn't support XSETTINGS for immodule yet.
105 # We still need to go with the older way.
110 -function setup_xim() {
112 if is_imsettings_enabled && is_xim_supported; then
114 XMODIFIERS="@im=imsettings"
119 -function run_imsettings() {
122 if [ -n "$DRY_RUN" ]; then
123 log "*** DRY RUN MODE: running IM through imsettings"
128 -function run_xim() {
131 if [ -n "$DRY_RUN" ]; then
132 log "*** DRY RUN MODE: running IM without imsettings"
137 -function print_result() {
140 if [ $? -eq 0 ]; then
146 -function print_info() {
148 log "imsettings information"
149 log "=========================="
150 log "XINPUTRC: $READ_XINPUTRC"
151 --- imsettings-1.5.0/data/xinput.sh.in.in.orig 2012-11-25 18:33:02.248463652 +0100
152 +++ imsettings-1.5.0/data/xinput.sh.in.in 2012-11-25 18:47:20.531779098 +0100
156 # Copyright (C) 1999-2004,2007-2011 Red Hat, Inc. All rights reserved. This
157 # copyrighted material is made available to anyone wishing to use, modify,
158 # copy, or redistribute it subject to the terms and conditions of the
159 @@ -257,13 +257,13 @@
161 if [ -r /etc/profile.d/lang.sh ]; then
163 - source /etc/profile.d/lang.sh
164 + . /etc/profile.d/lang.sh
165 elif [ -r /etc/default/locale ]; then
167 - source /etc/default/locale
168 + . /etc/default/locale
169 elif [ -r /etc/env.d/02locale ]; then
171 - source /etc/env.d/02locale
172 + . /etc/env.d/02locale
174 [ -n "$oldterm" ] && export TERM=$oldterm
177 [ -f "$HOME/.xinputrc.bak" ] && mv $HOME/.xinputrc.bak $CONFIGDIR/xinputrc.bak
179 if [ -r "$USER_XINPUTRC" -a "x$IMSETTINGS_DISABLE_USER_XINPUTRC" = "xno" ]; then
180 - source "$USER_XINPUTRC"
182 READ_XINPUTRC=$USER_XINPUTRC
183 if [ ! -h "$USER_XINPUTRC" ]; then
184 SHORT_DESC="User Specific"
187 for i in $_im_language_list; do
188 if echo $tmplang | grep -q -E "^$i"; then
189 - source "$SYS_XINPUTRC"
191 READ_XINPUTRC=$SYS_XINPUTRC
195 _xcompose_language_list="am_ET el_GR fi_FI pt_BR ru_RU"
196 for i in $_xcompose_language_list; do
197 if echo $tmplang | grep -q -E "^$i"; then
198 - source @XINPUT_PATH@/xcompose.conf
199 + . @XINPUT_PATH@/xcompose.conf
205 if [ $_sourced_xinputrc -eq 0 ]; then
206 # Read none.conf to set up properly for locales not listed the above.
207 - source @XINPUT_PATH@/none.conf
208 + . @XINPUT_PATH@/none.conf
212 --- imsettings-1.8.1/data/xinputinfo.sh.in.orig 2019-02-20 05:32:55.000000000 +0100
213 +++ imsettings-1.8.1/data/xinputinfo.sh.in 2019-05-20 20:47:06.287261883 +0200
218 # Copyright (C) 2008-2012 Red Hat, Inc. All rights reserved.
221 # Free Software Foundation, Inc., 51 Franklin Street, Fifth
222 # Floor, Boston, MA 02110-1301 USA
224 -function is_script() {
226 if [ "x$(sed -re '/^[ ]?*[a-zA-Z0-9_]+=.*/{d};/[ ]?*#.*/{d}' $1)" = "x" ]; then
231 if [ -r /etc/profile.d/lang.sh ]; then
233 - source /etc/profile.d/lang.sh
234 + . /etc/profile.d/lang.sh
235 elif [ -r /etc/default/locale ]; then
237 - source /etc/default/locale
238 + . /etc/default/locale
239 elif [ -r /etc/env.d/02locale ]; then
241 - source /etc/env.d/02locale
242 + . /etc/env.d/02locale
244 [ -n "$oldterm" ] && export TERM=$oldterm
247 unset AUXILIARY_PROGRAM AUXILIARY_ARGS GTK_IM_MODULE ICON IMSETTINGS_IGNORE_ME LONG_DESC NOT_RUN PREFERENCE_PROGRAM PREFERENCE_ARGS QT_IM_MODULE SHORT_DESC XIM XIM_PROGRAM XIM_ARGS IS_XIM
249 if [ $# -gt 0 ]; then
252 IMSETTINGS_FILENAME=$1
254 [ -z "${IMSETTINGS_DISABLE_USER_XINPUTRC-}" ] && IMSETTINGS_DISABLE_USER_XINPUTRC=no
255 [ -z "${IMSETTINGS_DISABLE_SYS_XINPUTRC-}" ] && IMSETTINGS_DISABLE_SYS_XINPUTRC=no
257 if [ -r "$USER_XINPUTRC" -a "x$IMSETTINGS_DISABLE_USER_XINPUTRC" = "xno" ]; then
258 - source "$USER_XINPUTRC"
260 IMSETTINGS_FILENAME=$USER_XINPUTRC
261 elif [ -r "$SYS_XINPUTRC" -a "x$IMSETTINGS_DISABLE_SYS_XINPUTRC" = "xno" ]; then
262 - source "$SYS_XINPUTRC"
264 IMSETTINGS_FILENAME=$SYS_XINPUTRC
267 --- imsettings-1.6.3/data/imsettings-target-checker.sh.in~ 2013-05-27 05:39:15.000000000 +0200
268 +++ imsettings-1.6.3/data/imsettings-target-checker.sh.in 2013-07-15 08:12:17.339869611 +0200
272 # imsettings-target-checker.sh
273 # Copyright (C) 2013 Akira TAGOH