当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 4 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : man im-config里面有个IM_CONFIG_PHASE,这变量含义是?
帖子发表于 : 2016-03-09 5:36 

注册: 2013-05-26 6:58
帖子: 2158
系统: Debian 9
送出感谢: 894
接收感谢: 30
man im-config里面有个IM_CONFIG_PHASE,这变量含义是?


_________________
Linux桌面优化综合贴[2017.09.18](欢迎各位补充或指正误区)
[2016.03.10]会C语言但看不懂英文文档的点这里,一个用C语言编写的简陋学习工具
单硬盘通过iso文件实机安装Debian的方法
重启或操作fcitx时失去响应的一个解决方法,不妨试试看


页首
 用户资料  
 
2 楼 
 文章标题 : Re: man im-config里面有个IM_CONFIG_PHASE,这变量含义是?
帖子发表于 : 2016-03-09 7:23 

注册: 2009-08-04 16:33
帖子: 16893
送出感谢: 21
接收感谢: 1827
1. /usr/share/doc/im-config/README.Debian.gz
sudo gzip -d /usr/share/doc/im-config/README.Debian.gz
sudo cat /usr/share/doc/im-config/README.Debian | grep IM_CONFIG_PHASE
* Environment variables are set if "$IM_CONFIG_PHASE" = 1
* Daemon programs are started if "$IM_CONFIG_PHASE" = 2

2. http://manpages.ubuntu.com/manpages/xen ... fig.8.html
im-config - set up input method configuration for X Window System
If you wish to create a custom configuration beyond what im-config can
do for you, please copy one of these initialization code files into
~/.xinputrc or /etc/X11/xinit/xinputrc and edit it to suite your need.
For example, 02_cjkv.rc tells how input method can be customized for
each locale. This script should be written to set environment
variables if "$IM_CONFIG_PHASE" = 1 and to start daemon programs if
"$IM_CONFIG_PHASE" = 2 .

3. 意即
if "$IM_CONFIG_PHASE" = 1 修改該 script 設定環境變數
if "$IM_CONFIG_PHASE" = 2 修改該 script 啟動 daemon 程式



_________________
评价: 3.7% 科学之子
 
页首
 用户资料  
 
3 楼 
 文章标题 : Re: man im-config里面有个IM_CONFIG_PHASE,这变量含义是?
帖子发表于 : 2016-03-12 13:15 

注册: 2013-05-26 6:58
帖子: 2158
系统: Debian 9
送出感谢: 894
接收感谢: 30
poloshiao 写道:
1. /usr/share/doc/im-config/README.Debian.gz
sudo gzip -d /usr/share/doc/im-config/README.Debian.gz
sudo cat /usr/share/doc/im-config/README.Debian | grep IM_CONFIG_PHASE
* Environment variables are set if "$IM_CONFIG_PHASE" = 1
* Daemon programs are started if "$IM_CONFIG_PHASE" = 2

2. http://manpages.ubuntu.com/manpages/xen ... fig.8.html
im-config - set up input method configuration for X Window System
If you wish to create a custom configuration beyond what im-config can
do for you, please copy one of these initialization code files into
~/.xinputrc or /etc/X11/xinit/xinputrc and edit it to suite your need.
For example, 02_cjkv.rc tells how input method can be customized for
each locale. This script should be written to set environment
variables if "$IM_CONFIG_PHASE" = 1 and to start daemon programs if
"$IM_CONFIG_PHASE" = 2 .

3. 意即
if "$IM_CONFIG_PHASE" = 1 修改該 script 設定環境變數
if "$IM_CONFIG_PHASE" = 2 修改該 script 啟動 daemon 程式


"意思"虽然明白了,但该变量的值是来自哪里?
Sat Mar 12 13:30:48 CST 2016:
代码:
/usr$ grep -r IM_CONFIG_PHASE

得到:/usr/bin/im-launch
得知2的来源(不知是否正确)

代码:
/etc$ grep -r IM_CONFIG_PHASE=1

/etc/X11/Xsession.d/70im-config_launch
得知1的来源(不知是否正确)


_________________
Linux桌面优化综合贴[2017.09.18](欢迎各位补充或指正误区)
[2016.03.10]会C语言但看不懂英文文档的点这里,一个用C语言编写的简陋学习工具
单硬盘通过iso文件实机安装Debian的方法
重启或操作fcitx时失去响应的一个解决方法,不妨试试看


页首
 用户资料  
 
4 楼 
 文章标题 : Re: man im-config里面有个IM_CONFIG_PHASE,这变量含义是?
帖子发表于 : 2016-03-12 19:33 

注册: 2009-08-04 16:33
帖子: 16893
送出感谢: 21
接收感谢: 1827
引用:
"意思"虽然明白了,但该变量的是来自哪里?

sudo cat /etc/X11/Xsession.d/70im-config_launch | grep IM_CONFIG_PHASE
IM_CONFIG_PHASE=1
export IM_CONFIG_PHASE

參見
http://manpages.ubuntu.com/manpages/xen ... fig.8.html
The im-config package installs a hook script /etc/X11/Xsession.d/70im-config_launch. When X starts, it sources this file as a POSIX shell code. Then this hook script tries to source the user configuration file ~/.xinputrc, if it exists. Otherwise, this hook script sources the system configuration file /etc/X11/xinit/xinputrc.



_________________
评价: 3.7% 科学之子
 
页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 4 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 3 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译