the following part of /etc/X11/gdm/Sessions/Gnome refers to a directory (/etc/X11/xinit/xinitrc.d/) that doesn't exist. ---snip--- # run all system xinitrc shell scripts. if [ -d /etc/X11/xinit/xinitrc.d ]; then for i in /etc/X11/xinit/xinitrc.d/* ; do if [ -x "$i" ]; then . "$i" fi done fi ---snip--- Fix: Add the dir =). I use it to run "exec ion -display :0.1".
Well it should only go trough this if the dir existed, it doesnt. So altough its obsolete, it shouldnt give any problems.
Just thought that it'd be a nice place for official xinitrc stuff. The bug is actually in baselayout though.
enlighten me here, what is it used for. What sort of things do these scripts do ? Is there a current place in Gentoo where we do have such scripts ? Why would i want to add it ?
The scripts should setup stuff for X that is not session dependent. Autostart programs and that kind of stuff. Actually I would want to move much of the stuff in the /etc/X11/Session/Gnome script to /etc/X11/xinit/xinitrc, furthermor xinitrc should parse xinitrc.d, and admins would put their own system specific stuff in that dir. /etc/X11/Session/Gnome should only run Gnome stuff. Why not make /etc/X11/Session/*.d dirs and put session specific stuff in there? like I said, I run two screens with x, so when gnome starts I like to start ion on the other. This is a typical candidate for a script i one of these dirs.
Well, i dont use things like this myself, but i can see the use in it for power users and it would be cleaner imo. This isn't really gnome, more a baselayout/xfree thing, so i'll add azarah as cc (hi Az :)). The extra session.d looks ok to me too: Gnome and Xsession scripts partly use the same code, that would be ideal to put in there, right ? John, would you mind creating an initial set of scripts that would accomplish this for us ? (shouldnt be too much work by the looks of it) so we can see how it works out.
I do not see what this have to do with baselayout. Yes, sure, baselayout do create some dirs/symlinks for X, but that was only a quick fix for a bug some time ago. If this need to be added to xfree, now that I can understand. Secondly, nowhere do xinit man pages state that they support, or use that dir. This is most prob an extension from Redhat or Suse (or whatever distro) that xdm authors decided to support. Thirdly, while I do see that this could help you in some way, it seems that you do manage (as the whole idea with many of the simplictic scripts we use) by *editing* things yourself. I really one see it fitting to hack all this in if we need this kind of support distro side. Else, the user/admin/whoever are free to add it himself. I mean ... why after all do we have CONFIG_PROTECT?
I will see what is needed/wanted, but as christmas is comming up, don't wait up for the scripts =). I'll try to find the time before newyear though. I'm probably wrong about baselayout, but where is this change to be? It's clearly not a bug in xfree as it is a reminance of RH. I think it should be a part of Gentoo though, so where do you put this stuff? These scripts are clearly obsolete as they refer to a whole bunch of files that Gentoo just don't have. As can bee seen a lot of stuff is repeated through out diffrent scripts, most of which are never parsed, and IMO it should all be in the same script. Not many people need this feature, true, but its unclean to have vars such as "rh6sysresources", more so if you're not eaven using them. If theare are no objections, other than the waste of time, I will proceed to investigate what scripts are run, are not run, are needed, and should be in Gentoo.
Well i didnt investigate myself really what scripts belonged to a certain package. Anyway, i think a cleanup would be nice and the possibility of init like xinit scripts appeals to me as well from a esthetical pov. It has no priority whatsoever, cause it all works as it is. But i guess Azarah has the last word on all this, not much use in working on it if it never gets in.
Like I said .. I dont say it wont get in, but I dont think it should be added if we dont need it for some or other ebuild. If the user want to use it, just: mkdir -p /etc/X11/xinit/xinitrc.d/
maybe later we will find the time/use