Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
在 KDE plasma konsole 里运行 locale, 返回结果是否是缓存?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
guyuming
Tux's lil' helper
Tux's lil' helper


Joined: 19 Nov 2020
Posts: 121

PostPosted: Sat Feb 27, 2021 12:24 pm    Post subject: 在 KDE plasma konsole 里运行 locale, 返回结果是否是缓存? Reply with quote

我刚在台式机上装了gentoo, profile 选的是用 systemd 的;

按照 https://wiki.gentoo.org/wiki/Fcitx/zh-cn 装的中文输入法, 但一开始 locale 返回的是 C.UTF8, 所以输入法没法用;

我在 tty1 里编辑了 /etc/locale.gen 文件, 重新运行了 locale.gen , 并且执行了 localectl set-locale LANG=zh_CN.utf8;

然后, 在 tty1 里, locale 就会返回 LANG=zh_CN.UTF-8, 但是进入 plasma, 在 konsole 里, locale 还是返回 C.UTF8. 输入法还是不能用;

我建一个新的帐号,用新帐号登录 plasma ,输入法就是好的.

对于老的帐号,我改如何操作呢?

我运行了 strace -e trace=file locale, 发现返回结果里包含 locale-archive 啥的,这个是干啥的? 是不是因为缓存了帐号创建时的locale? 可以重置吗?
Back to top
View user's profile Send private message
nwslustc
n00b
n00b


Joined: 23 Jul 2005
Posts: 7

PostPosted: Sun Apr 18, 2021 12:26 pm    Post subject: Reply with quote

我记得在kde的设置中心里可以指定语言和国家,因为我不用kde,所以不是很确定,你可以试试
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum