! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-xkb-plugin ignores system-wide settings
Status:
RESOLVED: FIXED
Product:
Xfce4-xkb-plugin
Component:
General

Comments

Description szalai.bandi 2007-05-22 09:04:30 CEST
- Try to create system-wide settings for xfce4-xkb-plugin. Under FreeBSD you should create the file named /usr/local/etc/xdg/xfce4/panel/xkb-plugin-<number>.rc.

- Make sure that your home directory doesn't contain personal xkb-plugin settings (~/.config/xfce4/panel/xkb-plugin-<number>.rc) and the panel must include the xkb-plugin (panels.xml).

- Then start up xfce, if you open xfce4-xkb-plugin settings, then the system-wide settings are ignored.

- The problem: the settings are always read from the personal configuration file (~/.config/xfce4/panel/xkb-plugin-<number>.rc).

- Possible fix (sorry for the cut & paste):

diff -ru xfce4-xkb-plugin-0.4.3.orig/panel-plugin/xfce4-xkb-plugin.c xfce4-xkb-plugin-0.4.3.new/panel-plugin/xfce4-xkb-plugin.c
--- xfce4-xkb-plugin-0.4.3.orig/panel-plugin/xfce4-xkb-plugin.c Wed Jan 17 19:02:57 2007
+++ xfce4-xkb-plugin-0.4.3.new/panel-plugin/xfce4-xkb-plugin.c  Sun May 20 11:12:16 2007
@@ -299,7 +299,7 @@
   NetkScreen* netk_screen;
 
   xkb = g_new(t_xkb, 1);
-  filename = xfce_panel_plugin_save_location(plugin, TRUE);
+  filename = xfce_panel_plugin_lookup_rc_file(plugin);
   if ((!filename) || (!xkb_load_config(xkb, filename)))
   {
     xkb_load_default(xkb);

- This bug is probably affects all platforms not just FreeBSD.
Comment 1 Igor Slepchin editbugs 2012-09-05 18:34:39 CEST
Fixed in cb50bc31797bf34d4896fefdcd4c99641131854a. Thanks for the report and the patch and apologies for a really long delay!

Bug #3263

Reported by:
szalai.bandi
Reported on: 2007-05-22
Last modified on: 2012-09-05

People

Assignee:
Alexander Iliev
CC List:
1 user

Version

Version:
unspecified

Attachments

Additional information