init
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
This commit is contained in:
14
Telegram/ThirdParty/hime/distro/debian/im-config/25_hime_upstream.conf
vendored
Normal file
14
Telegram/ThirdParty/hime/distro/debian/im-config/25_hime_upstream.conf
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
# vim: set sts=4 expandtab:
|
||||
IM_CONFIG_SHORT="$(gettext "啟用 HIME Input Method Editor (hime) (上游官方版本)")"
|
||||
|
||||
IM_CONFIG_LONG="$(gettext "HIME Input Method Editor (hime) (上游官方版本)
|
||||
* 需要安裝:hime 軟體包
|
||||
* 其他模組的支援請查閱 hime 來源碼中 configure 程式的 --help 命令列選項")"
|
||||
|
||||
package_auto() {
|
||||
package_status hime
|
||||
}
|
||||
|
||||
package_menu() {
|
||||
package_status hime
|
||||
}
|
||||
48
Telegram/ThirdParty/hime/distro/debian/im-config/25_hime_upstream.rc
vendored
Normal file
48
Telegram/ThirdParty/hime/distro/debian/im-config/25_hime_upstream.rc
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
# start hime (upstream version)
|
||||
# vim: set sts=4 expandtab:
|
||||
|
||||
if [ "$IM_CONFIG_PHASE" = 2 ]; then
|
||||
# start hime daemon
|
||||
/usr/bin/hime &
|
||||
fi
|
||||
|
||||
if [ "$IM_CONFIG_PHASE" = 1 ]; then
|
||||
# set variables for the plain XIM
|
||||
XMODIFIERS=@im=hime
|
||||
|
||||
GTK_IM_MODULE=xim
|
||||
# use hime immodule only when available for both GTK 2.0 and 3.0
|
||||
|
||||
IM_CONFIG_MARKER2=0
|
||||
for IM_CONFIG_MARKER in /usr/lib/*/gtk-2.0/*/immodules/im-hime.so \
|
||||
/usr/lib/gtk-2.0/*/immodules/im-hime.so; do
|
||||
if [ -e "$IM_CONFIG_MARKER" ]; then
|
||||
IM_CONFIG_MARKER2=1
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
IM_CONFIG_MARKER3=0
|
||||
for IM_CONFIG_MARKER in /usr/lib/*/gtk-3.0/*/immodules/im-hime.so \
|
||||
/usr/lib/gtk-3.0/*/immodules/im-hime.so; do
|
||||
if [ -e "$IM_CONFIG_MARKER" ]; then
|
||||
IM_CONFIG_MARKER3=1
|
||||
break
|
||||
fi
|
||||
done
|
||||
if [ "$IM_CONFIG_MARKER2" = 1 ] && [ "$IM_CONFIG_MARKER3" = 1 ]; then
|
||||
GTK_IM_MODULE=hime
|
||||
fi
|
||||
|
||||
# use immodule when available for Qt5
|
||||
for IM_CONFIG_MARKER in /usr/lib/*/qt5/plugins/platforminputcontexts/im-hime.so \
|
||||
/usr/lib/qt5/plugins/platforminputcontexts/im-hime.so; do
|
||||
if [ -e "$IM_CONFIG_MARKER" ]; then
|
||||
QT_IM_MODULE=hime
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
# hime has no clutter support
|
||||
CLUTTER_IM_MODULE=xim
|
||||
fi
|
||||
Reference in New Issue
Block a user