#!/bin/sh # vim: set sts=4 expandtab: # Copyright (C) 2012 Osamu Aoki <osamu@debian.org> # Copyright (C) 2012 Aron Xu <aron@debian.org> # GNU General Public License version 2 or later. # # Input Method launcher hook ... see im-launch(1). # The hook script for dbus-launch is in 75 which changes $STARTUP string. # This shuld be befor this dbus-launch hook to ensure the working dbus # for input method. Thus moved from 80 to 70. IMLAUNCH=/usr/bin/im-launch if [ "$IM_CONFIG_PHASE" = 1 ]; then IM_CONFIG_CHECK_ENV=1 export IM_CONFIG_CHECK_ENV fi # If already tweaked, keep hands off :-) # If im-config is removed but not purged, keep hands off :-) if [ -z "$XMODIFIERS" ] && \ [ -z "$GTK_IM_MODULE" ] && \ [ -z "$QT_IM_MODULE" ] && \ [ -z "$QT4_IM_MODULE" ] && \ [ -z "$CLUTTER_IM_MODULE" ] && \ [ -r /usr/share/im-config/xinputrc.common ]; then IM_CONFIG_PHASE=1 export IM_CONFIG_PHASE # initialize all im-config common functions and parameters . /usr/share/im-config/xinputrc.common unset TEXTDOMAIN unset TEXTDOMAINDIR # source the first found configuration file if [ -r "$IM_CONFIG_XINPUTRC_USR" ]; then . $IM_CONFIG_XINPUTRC_USR elif [ -r "$IM_CONFIG_XINPUTRC_SYS" ]; then . $IM_CONFIG_XINPUTRC_SYS fi # always export variables even for manual configuration. export XMODIFIERS export GTK_IM_MODULE export QT_IM_MODULE export QT4_IM_MODULE export CLUTTER_IM_MODULE fi # Change $STARTUP string to im-launch while keeping the old $STARTUP string # as its arguments if [ -x "$IMLAUNCH" ]; then STARTUP="$IMLAUNCH $STARTUP" fi
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
20dbus_xdg-runtime | File | 1.04 KB | 0644 |
|
20x11-common_process-args | File | 1.98 KB | 0644 |
|
30x11-common_xresources | File | 878 B | 0644 |
|
35x11-common_xhost-local | File | 389 B | 0644 |
|
40x11-common_xsessionrc | File | 187 B | 0644 |
|
50x11-common_determine-startup | File | 1.53 KB | 0644 |
|
55gnome-session_gnomerc | File | 743 B | 0644 |
|
60x11-common_localhost | File | 146 B | 0644 |
|
60x11-common_xdg_path | File | 991 B | 0644 |
|
60xbrlapi | File | 71 B | 0644 |
|
70im-config_launch | File | 1.6 KB | 0644 |
|
75dbus_dbus-launch | File | 752 B | 0644 |
|
90atk-adaptor | File | 511 B | 0644 |
|
90gpg-agent | File | 880 B | 0644 |
|
90qt-a11y | File | 335 B | 0644 |
|
90x11-common_ssh-agent | File | 629 B | 0644 |
|
95dbus_update-activation-env | File | 513 B | 0644 |
|
99x11-common_start | File | 166 B | 0644 |
|