5

Using Ubuntu 15.10. Configuring input using the Input Method Configuration screen. Whenever I change Extra key for trigger input method it works for only that session. Once I restart the computer it goes back to the default value of SHIFT Both which is annoying.

Is there a config file that is being overwritten every time I boot up? How can I prevent this?

Zanna
  • 72,312

5 Answers5

4

First you can use this command fcitx-configtool to open the fcitx config window,then you can change Extra key for trigger input method to whatever you want.

Then you can cd into the fcitx config folder: cd ~/.config/fcitx and use chmod 444 profile to change the permission of the profile to read only, so that no one can change back to default value.

Zanna
  • 72,312
4

I had the same problem, until I realized that I was using Sougou Pinyin on top of fcitx. In the settings of Sougou Pinyin, there is a hotkey (the default is SHIFT) for switching between Chinese and English. I believe it overwrites the settings of fcitx. I changed the hotkey to none and now the settings of fcitx are kept. If you are using Sougou Pinyin as I do, that might be the problem.

Zanna
  • 72,312
1

@Larry Yang's answer did not help me either. ~/.config/fcitx/profile seems to re-create and replace itself on each login.

Instead, edit ~/.config/fcitx/config

Change SwitchKey=SHIFT Both to SwitchKey=Disabled or whatever you like.

After saving and exiting, use chmod 400 config to make the configuration persist between logins.

1

@LarryYang 's solution didn't work for me, when I restarted my laptop, it seemed that a new profile was created and replaced the old one even after chmod +444 profile is used.

After some experiment I'm sure it is a behavior introduced by sogou pinyin instead of fcitx. Uninstalling sogou pinyin using sudo apt-get purge sogoupinyin saved my day.

TC Zhang
  • 141
0

Changing permission of the config file works for me.

  • disable switchKey via fcitx-configtool
  • run chmod 400 ~/.config/fcitx/config
Zanna
  • 72,312
Ye XIA
  • 1