[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: windowmangaer selection & sound problem



> to make this work in a sensible way, it needs to be part of the
> debian policy. my idea (partly stolen from suse):
> every windowmanager would add (and remove upon uninstall) itself
> to the file /etc/X11/windowmanagers (or, if you like it more, put
> a symlink to the executable in a windowmanagers directory). then
> it would call update-windowmanagers, which would be a script provided
> by the installed display manager (the dm's would have to conflict
> with each other, but they already do it functionally anyway). for
> kdm, this script could do something like that:

dm's conflicting with each other is wrong and won't happen.  


> WMS=$(sed 's:/.*/::' < /etc/X11/windowmanagers | tr '\n' ',') #the file variant
> #WMS=$(ls /etc/X11/windowmanagers | tr '\n' ',') #the directory variant
> cd /etc/kde2 && sed "s/^SessionTypes=.*\$/SessionTypes=default,${WMS}failsave/" <kdmrc >kdmrc.new && mv kdmrc.new kdmrc
> 
> this does not require any additional magic in kdm and allows 
> distribution- and display-manager- specific solutions.
> 
> the file variant has the advantage, that one can spcify a
> non-alphabetical order without doing additional voodoo. the directory
> variant is simpler to edit, as one only needs to create and delete
> files, but obviously the user has no control about the order, in which
> the managers apprear in the login dialog - hmm ... who cares?
> 
> 
> btw, gdm directly branches into the different session files. if you
> look at these files, you'll notice, that they have a lot of code
> duplication. i think, it's better to have a common Xsession and let it
> finally execute the window manager/desktop environment (like xdm/kdm do).

I agree with the gdm bit. 

anyways... this idea is similar to what Branden had discussed with me some
months back using the same concept as the update-menus system.

Ivan

-- 
----------------
Ivan E. Moore II
rkrusty@tdyc.com
http://snowcrash.tdyc.com
GPG KeyID=90BCE0DD
GPG Fingerprint=F2FC 69FD 0DA0 4FB8 225E 27B6 7645 8141 90BC E0DD



Reply to: