Comment 31 for bug 548631

Revision history for this message
Louis de Leseleuc (ldeleseleuc) wrote :

The plugin seems to crash randomly, losing it configuration in the process.

As stated above, if we want to still use the plugin (to switch, see the flag, etc) we cannot use a setxkbmap command on startup because the settings get overwritten by xkb-plugin (with blank ones).

Complicated temporary automated solution:
1. Set the desired options in the plugin
2. Copy the ~/.config/xfce4/panel/xkb-plugin-##.rc to some other file e.g. ~/.config/xfce4/panel/goodxkb.rc
3. Add this command to a startup job:

     sh -c "cp ~/.config/xfce4/panel/goodxkb.rc ~/.config/xfce4/panel/xkb-plugin-##.rc && pkill xkb"
    (change the ## to your number)

The pkill part is crucial to reload the plugin and its config.

Works for me. Any change in the options will only affect the current session. The goodxkb file would need to be modified or recreated for the changes to persist.