Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 48263 - x11-wm/fvwm system-installed session file should respect system and user Xmodmap settings
Summary: x11-wm/fvwm system-installed session file should respect system and user Xmod...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Jesús Guerrero Botella (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-18 13:55 UTC by Brant Gurganus
Modified: 2012-10-07 13:50 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Brant Gurganus 2004-04-18 13:55:51 UTC
Many of the Session files installed for various window managers and desktops on Gentoo reference a system wide Xmodmap file and a user Xmodmap file.  These same references should be done in the session script that starts fvwm.

Reproducible: Always
Steps to Reproduce:
1. Set a Xmodmap file at /etc/X11/Xmodmap.
2. Start an fvwm session.
Actual Results:  
The XModmap file is not read.

Expected Results:  
The XModmap file should be read.

I know that the XSession and Gnome session files read this.
Comment 1 Avuton Olrich 2004-08-13 15:06:44 UTC
I believe this is a duplicate of http://bugs.gentoo.org/show_bug.cgi?id=25121 but I also think I found the problem with my system. 

In /etc/X11/xdm/Xsession it has the following code. Maybe I don't understand the weight of the situation, but why are we doing /etc/X11/chooser.sh _or_ doing our modmaps? Just as a workaround I just moved the modmap stuff above this if because afaikt /etc/X11/chooser.sh has nothing to do with executing modmap on these files.

# First run the system default.  Because KDE uses this
# to switch sessions, we MUST first check the system
# default, and then ~/.xsession.  If the user Do not
# want this, he should override XSESSION, or at least
# clear it.
if [ -n "`/etc/X11/chooser.sh`" ]; then
	exec "`/etc/X11/chooser.sh`"
# If not defined, try the user's ~/.xsession
elif [ -s "$startup" ]; then

	# merge in defaults and keymaps

	if [ -f $sysresources ]; then
		xrdb -merge $sysresources
	fi

	if [ -f $sysmodmap ]; then
		xmodmap $sysmodmap
	fi

	if [ -f $userresources ]; then
		xrdb -merge $userresources
	fi

	if [ -f $usermodmap ]; then
		xmodmap $usermodmap
	fi

	if [ -x "$startup" ]; then
		exec "$startup"
	else
		exec /bin/sh "$startup"
	fi
Comment 2 Brant Gurganus 2004-08-14 06:58:52 UTC
If I recall correctly (I don't have Gentoo installed right now), bug 25121 is not a duplicate.  It deals with XModmap'ing not working.  This deals with the settings not even being read.
Comment 3 Tom Felker 2005-01-29 14:08:42 UTC
This is also a problem in KDE.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2006-07-26 08:36:20 UTC

*** This bug has been marked as a duplicate of 128304 ***
Comment 5 Brant Gurganus 2006-07-26 08:52:54 UTC
This is not a duplicate. The other bug deals with Xsession, not with fvwm. They are different Xsessions.
Comment 6 Erik 2006-09-13 22:18:03 UTC
I have this in /etc/X11/Xmodmap:
keycode 160 = XF86AudioMute
keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume
keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop
keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext
pointer = 1 2 3 9 10 6 7 8 4 5 11 12 13 14

Whenever I log into KDE I have to execute "xmodmap /etc/X11/Xmodmap". It should be automatic. This is getting annoying. What should I do about it?
Comment 7 Pacho Ramos gentoo-dev 2012-10-07 13:50:09 UTC
+*fvwm-2.6.5 (07 Oct 2012)
+
+  07 Oct 2012; Pacho Ramos <pacho@gentoo.org> +fvwm-2.6.5.ebuild:
+  Version bump, also include a default on vanilla USE and patch to increase
+  maximum mouse buttons number when that USE is off, also include epatch_user as
+  requested, please see bugs #411811 (by avx) and #412079 (also by Jesús
+  Guerrero).
+

Please retry with this new version on a fully updated system