avidyalalala / sunpinyin

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

ibus-sunpinyin 配置文件应该默认放在 ~/.sunpinyin/ 下 #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
目前ibus-sunpinyin会根据ibus的配置文件路径生成.
对于已经安装了ibus-1.2 的情况,会生成在 ~/.ibus/sunpinyin/ 下 
(因为ibus-1.2的配置文件
在~/.ibus/下)
对于已经安装了ibus-1.3 的情况,会生成在 ~/.cache/ibus/sunpinyin/ 
下 (这是由于ibus-1.3
的路径改变了才会这样的)

由ibus-1.2升级到ibus-1.3 也不会把 sunpinyin的配置文件移动 
~/.cache/ibus/sunpinyin/

最好是默认生成在 ~/.sunpinyin/ 下. 这样比较直观. 
备份时候也方便, 直接复制~/.sunpinyin/ 
就ok了. 不用考虑ibus的配置文件位置.

Original issue reported on code.google.com by chanyunk...@gmail.com on 4 Apr 2010 at 4:30

GoogleCodeExporter commented 9 years ago
hi chuanyunkwan,

首先,这样修改的由来是 issue#38 ,ibus-sunpinyin 
的数据文件所在目录不是根据 ibus 的配
置文件路径生成的,所以这不是因为 ibus 
的路径变化所致。你说的对,放在 .cache 里面的确
有问题,这不符合 XDG 的规范 [1],应该放在类似 
$HOME/.local/share/sunpinyin 之类的地
方,即 $XDG_DATA_DIRS 。

另外,我觉得这些文件不是配置文件,而是数据文件才是啊��
�

--
[1] http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

Original comment by tchai...@gmail.com on 5 Apr 2010 at 3:13

GoogleCodeExporter commented 9 years ago

Original comment by tchai...@gmail.com on 10 Apr 2010 at 1:14

GoogleCodeExporter commented 9 years ago
那么现在放在哪里呢?

Original comment by chanyunk...@gmail.com on 10 Apr 2010 at 1:26

GoogleCodeExporter commented 9 years ago
$HOME/.sunpinyin 

和 xsunpinyin 一样了。=) 
先这样吧。

Original comment by tchai...@gmail.com on 10 Apr 2010 at 1:31

GoogleCodeExporter commented 9 years ago
是的,这样好一些。这样那些词库导入导出工具也好写了。

Original comment by mikeandm...@gmail.com on 10 Apr 2010 at 7:03