Plugin crashes randomly when "Use system defaults" is checked under Settings>Keyboard>Layout and some other mechanism is used to switch the layouts, e.g. direct invocations of `setxkbmap`. STEPS TO REPRODUCE PRECONDITION: The checkbox "Use system settings" is checked in XFCE Settings Manager>Keyboard>Layout. 1. Start manually from a startup script or from terminal the command `setxkbmap -option grp:caps_toggle us,es`. 2. Add the Keyboard Layout plugin to a panel. 3. Continue using the plugin. EXPECTED RESULT: Plugin continues to work and the correct layout is shown when the hot key is pressed (e.g. caps lock). ACTUAL RESULT: Plugin works for some time, but then crashes on relogin or randomly without any apparent reason during the current session. The plugin always crashes when user selects 'Properties' or 'About' from the right-click context menu. ===kernel.log=== kernel: xfce4-xkb-plugi[10108]: segfault at 11 ip b6b6da0b sp bfd92eac error 4 in libc-2.13.so[b6afa000+145000] NOTES: The bug might be related to bug https://bugs.archlinux.org/task/21067 [FS#21067 - [xfce4-xkb-plugin] crashes in settings and about dialog.]
Try use new version - 0.5.4.0, I hope, it helps: http://archive.xfce.org/src/panel-plugins/xfce4-xkb-plugin/0.5/xfce4-xkb-plugin-0.5.4.0.tar.bz2
Created attachment 3624 Unexpected symbols in properties dialog screenshot: unexpected symbols in properties dialog
I have built from GIT and the segfaults are indeed gone. But there are now strange characters in the plugin 'Properties' dialog as can be seen in the attached screenshot. Another thing which probably still needs clarification is whether the Properties dialog should be enabled in the case when Settings>Keyboard>Layout>'Use system defaults' is checked. Is there some kind of requirement for this kind of a use case? I would expect that in the case when keyboard layouts are not configured via XFCE Settings, then (1) the 'Properties' item in the context menu should be grayed out, or even better, (2) selecting 'Properties' would display an alert saying something like 'Keyboard layouts are not managed by XFCE. You can enable layout management in Settings > Keyboard > Layout...' or something like this. This is just an idea; maybe there is a better way to handle this.
I have logged in onto my XFCE desktop using a tightvnc session tunnelled via SSH, and have noticed that the plugin (latest git build) segfaults and goes on a loop with the 'Execute/Remove' dialog showing repeatedly until Remove is selected.
Those bugs should be fixed with latest git master branch, can you please try it?
Please try 0.5.4.1 and reopen bug if errors appears again.