|
发表于 2007-7-7 14:59:54
|
显示全部楼层
Auto start application when starting X
终于弄的差不多了
不过如果文件夹名字有中文的话会显示“????”这个应该怎么搞?
fcitx我是按照输入法版的置顶重装了下。有个问题就是怎么让fcitx在我开机的时候就启动阿,我现在每次都要打命令。 1. Make a directory $HOME/.config/autostart if it doesn't exist, and cd to it.- $ mkdir -p $HOME/.config/autostart
- $ cd $HOME/.config/autostart
复制代码 2. Create a file called FCITX.Desktop, and put the following lines in it.- [Desktop Entry]
- Encoding=UTF-8
- Version=3.1.1
- Type=Application
- Name=FCITX
- Comment=FCITX Input Method
- Exec=/usr/bin/fcitx
- StartupNotify=false
- Terminal=false
- Hidden=false
复制代码 3. Restart X.
Note:
1. If you don't know the path of fcitx, type "which fcitx" to find it and change the line Exec=/usr/bin/fcitx accordingly.
2. The method suggested was tested in KDE 3.5.7 and XFCE4.4 under Slackware 12.0. It will fail in XFCE4.2.
3. With tries and errors, I have found KDE desktop has poorer Chinese support than Gnome and XFCE desktop. If you need better Chinese support, use Gnome or XFCE instead.
4. I personally recommended using UTF-8 encoding instead of GBK encoding, so go to /etc/profile.d/lang.sh and change the line from LANG=xxx to LANG=en_US.UTF-8. This way you will have an English desktop with Chinese environment. Then不过如果文件夹名字有中文的话会显示“????”这个应该怎么搞? Some of the filenames are written with Chinese GB2312. You can convert the filenames into UTF-8 encoding with convmv -f gb2312 -t utf-8 -r --notest * If this fails, you may need to convert your filesystems, something like adding correct options to /etc/fstab. For example,#Filename: /etc/fstab
/dev/cdrom /mnt/cdrom iso9660 defaults,noauto,users,ro,utf8 0 0
Good luck !! |
|