Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12488 - /etc/X11/gdm/Sessions/Gnome changes proposal
Summary: /etc/X11/gdm/Sessions/Gnome changes proposal
Status: RESOLVED LATER
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High trivial (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-20 12:37 UTC by John Nilsson
Modified: 2003-04-25 11:40 UTC (History)
1 user (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 John Nilsson 2002-12-20 12:37:54 UTC
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".
Comment 1 foser (RETIRED) gentoo-dev 2002-12-21 09:12:27 UTC
Well it should only go trough this if the dir existed, it doesnt. So altough its
obsolete, it shouldnt give any problems.
Comment 2 John Nilsson 2002-12-21 09:29:00 UTC
Just thought that it'd be a nice place for official xinitrc stuff. The bug is
actually in baselayout though.
Comment 3 foser (RETIRED) gentoo-dev 2002-12-21 09:53:38 UTC
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 ?
Comment 4 John Nilsson 2002-12-21 11:49:54 UTC
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.
Comment 5 foser (RETIRED) gentoo-dev 2002-12-21 12:42:58 UTC
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. 
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-21 13:43:49 UTC
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?
Comment 7 John Nilsson 2002-12-21 22:24:24 UTC
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.
Comment 8 foser (RETIRED) gentoo-dev 2002-12-22 09:34:34 UTC
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.
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-25 13:03:20 UTC
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/
Comment 10 foser (RETIRED) gentoo-dev 2003-04-25 11:40:04 UTC
maybe later we will find the time/use