When I edit my ~/.XCompose file, I need to reboot Ubuntu 16.04 for the changes to take effect. Is there a way to tell Ubuntu to reload the definitions in the file without doing a full reboot?
- 2,787
- 707
2 Answers
Restart the input method program you are running. For a brute force approach, if your OS comes with pidof, you can use the following command:
pidof <INPUTMETHOD> | xargs kill -9; <INPUTMETHOD>
(Just replace with the actual command for your input method program.)
Your input method may include a command to restart it. In my case, it's fcitx, which offers this command:
fcitx -r
All changes are instantly activated. However, some applications may need to be restarted.
As ARX mentions in comments, ibus has its own command to restart as well:
ibus restart
To find out which input method you are using, run the following:
im-config
It will open a window with a list of steps it takes to determine your input method. You can also use the -m command line option to print the method in your console (without the details about each step...)
- 2,787
-
8This works for ibus. You can also use "ibus restart" as a simpler alternative. Thanks! – ARX Jul 19 '20 at 23:43
-
2
-
1
-
2How do we determine what our input method is? I don't have either ibus or fcitx installed. (I'm on Debian Testing, so slightly off brand, but not by much.) – Adam Katz Oct 02 '24 at 16:36
I'm on ubuntu 22.10, and my problem is that: I'm including files from ~/.XCompose, and if the modifications are inside the included files but not directly to ~/.XCompose, then apps won't pick up the updates. So I have to do a dummy editing directly inside ~/.XCompose, and restart apps.
To sum up:
- Check that your updates are directly inside ~/.XCompose (not one of your included files). Or you need to do a dummy editing like me (retouching ~/.XCompose might also work).
- Restart application.
If above not work, you might as well try these:
- restart input engine.
- restart X.
- relogin.
- 2,787
- 101
~/.XComposeshould be effective immediately. – DK Bose Dec 11 '18 at 15:51