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

Re: replacing GDM with a script

On Fri, Aug 3, 2012 at 6:31 PM, Frank McCormick <debianlist@videotron.ca> wrote:
> On 03/08/12 01:15 PM, Tom H wrote:
>>> Interesting stuff. You can have 3-4-5 X sessions each with a different
>>> window manager. It works when run from a TTY but I can't get it working
>>> from
>>> a terminal in an existing session, despite what the author claims. What's
>>> more interesting is it doesn't seem to any much of an additional load on
>>> the
>>> CPU. I am sure there is one but the effect is minimal. However still far
>>> away from my original idea of replacing GDM with a BASH script(s). But a
>>> lot closer than I was this morning :)
>> I must've misunderstood you. I thought that you wanted to run your
>> three WMs simultaneously.
>> If you just want a script to launch one of your WMs, something like
>> this should do:
>> $ cat wm.sh
>> case $1 in
>> wm1)
>>         /usr/bin/startx /path/to/wm1/executable
>>         ;;
>> wm2)
>>         /usr/bin/startx /path/to/wm2/executable
>>         ;;
>> wm3)
>>         /usr/bin/startx /path/to/wm3/executable
>>         ;;
>> *)
>>         /usr/bin/startx /path/to/wmX/executable
>>         ;;
>> esac
> That works ! I guess it's pretty simple BASH scripting...but not
> something I could do :) Can you tell me how I can get this script to run
> automatically on boot ? rc.local ? Yeah I know...you've helped enough
> already :)

I'm glad that it works but I don't understand your rc.local request.
If you add this script to rc.local, you won't be able to choose a WM,
unless you want rc.local to pause and wait for you to type in the WM
that you want to start.

Reply to: