! 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 !
user-defined shortcuts don't work on login till keyboard-manager is relaunched
Status:
RESOLVED: INVALID
Product:
Xfce4-settings
Component:
Keyboard Settings

Comments

Description mihozu 2007-01-10 12:09:01 CET
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.8.0.8) Gecko/20061115 Ubuntu/dapper-security Firefox/1.5.0.8
Build Identifier: 

shortcuts using custom xmodmap to use multimedia keys don't work on session startup till keyboard-manager is launched

Reproducible: Always

Steps to Reproduce:
1.define a custom xmodmap and make it xmodmapped on session startup
2.define keyboard shortcuts using those keys -> shortcuts actually work
3.logout and login, shortcuts don't work, launch keyboard-manager (no need to change anything just launching it) -> shortcuts work back
Comment 1 Alan Tam 2007-05-09 10:31:18 CEST
I can reproduce this bug in Xubuntu 7.04.
Comment 2 Kim B 2007-05-21 21:05:35 CEST
I can also reproduce this bug in Xubuntu 7.04. If I configure the shortcuts with xbindkeys it works, at the expense of the xfce4-mixer-plugin not loading in the panel.
Comment 3 Edwin Chow 2007-11-13 07:12:08 CET
I have found this bug in xubuntu 7.10 also.
Comment 4 N Wang 2007-12-16 15:37:06 CET
I can reproduce this bug in my LFS box when haldaemon running. If turn it off, the bug go away.

hal-0.5.10
xfce-4.4.1
Comment 5 N Wang 2007-12-18 03:41:09 CET
I think can provide some more information on it:
1. this bug seems related to  https://bugs.launchpad.net/ubuntu/+source/xfce4-session/+bug/97175/+viewstatus. I can reproduce it on my LFS system. I use xfce autostart to run a script:

xmodmap > /tmp/modmap

I found the result is different from xmodmap output after xfce fully startup. (I've no private .Xmodmap file)

2. I read the code and found that if  I change the "shortcuts_plugin.c"'s code, apply a tiny patch:

--- ./shortcuts_plugin.ori.c	2007-12-18 11:24:22.000000000 +0800
+++ ./shortcuts_plugin.c	2007-12-18 11:31:40.000000000 +0800
@@ -524,6 +524,7 @@
 
     gpcontext = g_markup_parse_context_new (&gmparser, 0, &state, NULL);
 
+if (NULL == dialog) {
     gdk_error_trap_push ();
     if (!g_markup_parse_context_parse (gpcontext, file_contents, st.st_size, &err))
     {
@@ -532,6 +533,7 @@
 
	 goto cleanup;
     }
+}
 
     if (g_markup_parse_context_end_parse (gpcontext, NULL))
     {


The shortcut keys will never work even if I open the keyboard manager.

3. If I run keyboard manager just after the startup processing (like, put xfce-setting-show in autostart list and quickly hit the keyboard manager), the shortcut keys not work. I have to wait 3 or 5 seconds and run the manager to bring my shortcut back.

I hope this information is helpful to you.


Comment 6 Eli 2011-11-22 14:44:10 CET
I'm getting a similar issue. My script to load the .Xmodmap keymap is not
recognized when I place it as a startup application under "Session and
Autostart".

I am using Debian 6.0.2 with xfce4.6.2.

The wiki also describes this as an issue: http://wiki.xfce.org/faq

I tried reproducing this using mihozu's steps, but I launching keyboard settings does not restore my scripted .Xmodmap keymap. Then again, I am not trying to map these specific key combinations, but rather a few keys themselves ( I have a different keyboard than standard ones ).
Comment 7 Vladimir Zapolskiy 2012-06-13 10:43:52 CEST
(In reply to comment #6)
> I'm getting a similar issue. My script to load the .Xmodmap keymap is not
> recognized when I place it as a startup application under "Session and
> Autostart".
> 
> I am using Debian 6.0.2 with xfce4.6.2.
> 
> The wiki also describes this as an issue: http://wiki.xfce.org/faq
> 
> I tried reproducing this using mihozu's steps, but I launching keyboard
> settings does not restore my scripted .Xmodmap keymap. Then again, I am not
> trying to map these specific key combinations, but rather a few keys
> themselves ( I have a different keyboard than standard ones ).

I had the same problem on Debian with xfce 4.8.3, when I tried to run xmodmap from /etc/X11/Xsession. However the problem is gone after switching "Use system defaults" off through xfce4-keyboard-settings interface.

Hope it helps.

Bug #2731

Reported by:
mihozu
Reported on: 2007-01-10
Last modified on: 2020-05-25

People

Assignee:
Jannis Pohlmann
CC List:
7 users

Version

Version:
unspecified

Attachments

Additional information