我的系统debian6.04(发现ubuntu12.04毛病很多,因此叛逃了)。
ibus安装后,设置开机自启动,
设置成功的方式,在system-startup application,edit一个新的项目,命令使用/usr/bin/ibus-daemon.
为何我编辑/etc/rc.local增加一条
/usr/bin/ibus-daemon
就不行,无法实现自动开机?
我在/etc/rc.local增加一条
firefox
就可以实现开机自启动firefox浏览器,不知是什么原因?
ibus开机自启动问题
-
- 帖子: 980
- 注册时间: 2008-04-12 12:44
-
- 帖子: 980
- 注册时间: 2008-04-12 12:44
Re: ibus开机自启动问题
我在/etc/rc.local增加一条
ibus-daemon -d -x -r
这样也不行,请问,我如何通过配置文件,写命令行的方式完成配置?
ibus-daemon -d -x -r
这样也不行,请问,我如何通过配置文件,写命令行的方式完成配置?
-
- 帖子: 980
- 注册时间: 2008-04-12 12:44
Re: ibus开机自启动问题
IBusStartUpTroubleShooting
IBus start up trouble shooting for various desktop environments (DE) and standalone window managers (WM).
Phase-Deploy
Updated May 25, 2012 by [email protected]
1. Introduction
2. Trouble shooting
2.1 Does the DE or WM support XDG autostart?
2.2 Does your imsettings, im-chooser, im-switch, or other input framework selecting mechanism work?
3. Start Up Script
3.1 Disable im-settings and IBus from XDG autostart
3.2 Install Autoexec script(optional)
3.3 Content of the startup script
1. Introduction
Normally IBus startup configuration will be done automatically after IBus installation. But if it does not "just work" then this page is for you. Following sections list the possible causes of the problem.
2. Trouble shooting
2.1 Does the DE or WM support XDG autostart?
XDG autostart specifies the how the applications should be started when you start a X session. DE such like GNOME, KDE, LXDE, and XFCE support it. Unfortunately, not all WM support it, if you have one of such WM, you may need to put ibus-daemon in your start up script.
See Start Up Script for detail.
2.2 Does your imsettings, im-chooser, im-switch, or other input framework selecting mechanism work?
Some distribution like Fedora an Ubuntu have this mechanism so users can change their input frameworks (such as SCIM, IBus, OXIM) , without logging out. If unfortunately, the mechanism does not get along with your DE or WM, then you might need to disable it.
See Start Up Script for detail.
3. Start Up Script
Note: The following script is designed for Fedora, other system may need to change accordingly.
The following method should work for nearly all DE or WM. However you may need to disable the imsettings and IBus from XDG autostart setting.
3.1 Disable im-settings and IBus from XDG autostart
3.1.1 KDE4
Application->System->System Setting->Advance->Autostart Disable im-settings and IBus
3.1.2 GNOME
System->Preferences->Startup Application->Startup Programs Disable im-settings and IBus
3.1.3 LXDE
# Open an terminal # gnome-control-center # Startup Application->Startup Programs Disable im-settings and IBus
3.2 Install Autoexec script(optional)
If you want a place to put your autostart scripts for all DE and WM regardless the XDG support or starting from startx/desktop manager, read on, otherwise skip this section.
# sudo vi /etc/X11/xinit/xinitrc.d/45-autoexec.sh
Whose content is:
#!/bin/bash
if [ -x "$HOME/.autoexec" ]; then
. $HOME/.autoexec
Now you can put your favorite application in $HOME/.autoexec
3.3 Content of the startup script
Add following to your startup script (~/.autoexec, or ~/.Xclient if you start with startx)
# input framework launch
XIM_PROF=ibus
ln -sf /etc/X11/xinit/xinput.d/${XIM_PROF}.conf ${HOME}/.xinputrc
source ${HOME}/.xinputrc
if [ -n "${GTK_IM_MODULE}" ]; then
export GTK_IM_MODULE
else
export GTK_IM_MODULE=xim
fi
if [ -n "${QT_IM_MODULE}" ]; then
export QT_IM_MODULE
else
export QT_IM_MODULE=xim
fi
echo "XIM_PROGRAM=${XIM_PROGRAM}"
${XIM_PROGRAM} ${XIM_ARGS} &
If you do not have /etc/X11/xinit/xinput.d/ibus.conf , then use following instead:
# input framework launch
ibus-daemon --xim -d
IBus start up trouble shooting for various desktop environments (DE) and standalone window managers (WM).
Phase-Deploy
Updated May 25, 2012 by [email protected]
1. Introduction
2. Trouble shooting
2.1 Does the DE or WM support XDG autostart?
2.2 Does your imsettings, im-chooser, im-switch, or other input framework selecting mechanism work?
3. Start Up Script
3.1 Disable im-settings and IBus from XDG autostart
3.2 Install Autoexec script(optional)
3.3 Content of the startup script
1. Introduction
Normally IBus startup configuration will be done automatically after IBus installation. But if it does not "just work" then this page is for you. Following sections list the possible causes of the problem.
2. Trouble shooting
2.1 Does the DE or WM support XDG autostart?
XDG autostart specifies the how the applications should be started when you start a X session. DE such like GNOME, KDE, LXDE, and XFCE support it. Unfortunately, not all WM support it, if you have one of such WM, you may need to put ibus-daemon in your start up script.
See Start Up Script for detail.
2.2 Does your imsettings, im-chooser, im-switch, or other input framework selecting mechanism work?
Some distribution like Fedora an Ubuntu have this mechanism so users can change their input frameworks (such as SCIM, IBus, OXIM) , without logging out. If unfortunately, the mechanism does not get along with your DE or WM, then you might need to disable it.
See Start Up Script for detail.
3. Start Up Script
Note: The following script is designed for Fedora, other system may need to change accordingly.
The following method should work for nearly all DE or WM. However you may need to disable the imsettings and IBus from XDG autostart setting.
3.1 Disable im-settings and IBus from XDG autostart
3.1.1 KDE4
Application->System->System Setting->Advance->Autostart Disable im-settings and IBus
3.1.2 GNOME
System->Preferences->Startup Application->Startup Programs Disable im-settings and IBus
3.1.3 LXDE
# Open an terminal # gnome-control-center # Startup Application->Startup Programs Disable im-settings and IBus
3.2 Install Autoexec script(optional)
If you want a place to put your autostart scripts for all DE and WM regardless the XDG support or starting from startx/desktop manager, read on, otherwise skip this section.
# sudo vi /etc/X11/xinit/xinitrc.d/45-autoexec.sh
Whose content is:
#!/bin/bash
if [ -x "$HOME/.autoexec" ]; then
. $HOME/.autoexec
Now you can put your favorite application in $HOME/.autoexec
3.3 Content of the startup script
Add following to your startup script (~/.autoexec, or ~/.Xclient if you start with startx)
# input framework launch
XIM_PROF=ibus
ln -sf /etc/X11/xinit/xinput.d/${XIM_PROF}.conf ${HOME}/.xinputrc
source ${HOME}/.xinputrc
if [ -n "${GTK_IM_MODULE}" ]; then
export GTK_IM_MODULE
else
export GTK_IM_MODULE=xim
fi
if [ -n "${QT_IM_MODULE}" ]; then
export QT_IM_MODULE
else
export QT_IM_MODULE=xim
fi
echo "XIM_PROGRAM=${XIM_PROGRAM}"
${XIM_PROGRAM} ${XIM_ARGS} &
If you do not have /etc/X11/xinit/xinput.d/ibus.conf , then use following instead:
# input framework launch
ibus-daemon --xim -d
-
- 帖子: 89
- 注册时间: 2012-02-28 18:55
- 系统: FreeBSD-9.1; Gentoo
Re: ibus开机自启动问题
代码: 全选
sudo ln -s /usr/share/applications/ibus.desktop /etc/xdg/autostart/