avidyalalala / sunpinyin

Automatically exported from code.google.com/p/sunpinyin
0 stars 0 forks source link

希望linux下能符合xdg规范,将sunpinyin配置文件存放到$XDG_CONFIG_HOME下 #209

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
这么做可以保证$HOME目录干净,而且方便用户管理配置文件,
数据文件等。

比如缓存存放在$XDG_CACHE_HOME,那么用户清理缓存之需要rm 
~/.cache就好了,不需要分别进入每个软件目录再来删除不需要
的东西。

现在输入法都跟随这个改变。如ibus,fcitx

$XDG_CONFIG_HOME默认为~/.config
$XDG_CACHE_HOME默认为~/.cache
$XDG_DATA_HOME默认为~/.local/share

glib2默认包含相应函数g_get_user_config_dir()等。

更多:http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

附件是一个简单的补丁。不完善,但可用。

Original issue reported on code.google.com by jason5...@gmail.com on 22 Sep 2010 at 5:53

Attachments:

GoogleCodeExporter commented 9 years ago
我们一度是放到XDG_CACHE_HOME中的,后来是有朋友提需求,才改
到$HOME/.sunpinyin的 :( 
这次再改回去,又有很多朋友要抱怨了,不如等下一次major 
release的时候再改回去吧 :)

Original comment by find...@gmail.com on 22 Sep 2010 at 2:13

GoogleCodeExporter commented 9 years ago
做个投票?

Original comment by mikeandm...@gmail.com on 22 Sep 2010 at 2:17

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
改了为何要换回来。放在$HOME下也不见得方便。所有软件都放
家目录会让家目录非常乱。fcitx,ibus都改到~/.config下去了。��
�

还是靠开发者自己权衡了。。符合XDG是趋势,只是什么时候��
�行的问题了。

Original comment by jason5...@gmail.com on 22 Sep 2010 at 6:30

GoogleCodeExporter commented 9 years ago
支持改到 XDG_CONFIG_HOME 
中,我前一阵也提过这个问题,现在是把自己机器上的改了��
�分代码,改到了 ~/.config 下。

个人支持在 major release 中修改回来。

Original comment by yangyingchao@gmail.com on 26 Oct 2010 at 7:07

GoogleCodeExporter commented 9 years ago
改到$HOME/.sunpinyin的理由是什么?

Original comment by snnn119 on 3 Nov 2010 at 5:46