Operating System - HP-UX
1851268 Members
3180 Online
104057 Solutions
New Discussion

Re: Window manager script

 
John Ramsay_2
Regular Advisor

Window manager script

ok...I got CDE,Gnome and windowmaker all loaded...
Is it posible to write a script that's called cde
and runs xinit /usr/dt/bin/Xsession
or
wm
and runs xinit /usr/local/bin/wmaker
or
gnome
and runs
xinit /etc/gnome/gdm/Sessions/Gnome

Is it possible? This is my first attempt at writing a script so any help would be appreciated.
John
1 REPLY 1
Karthik S S
Honored Contributor

Re: Window manager script

##Run this script as "script cde/wm/gnome"
case $1 in
cde) xinit /usr/dt/bin/Xsession
;;
wm) xinit /usr/local/bin/wmaker
;;
gnome) xinit /etc/gnome/gdm/Sessions/Gnome
;;
esac

-Karthik S S
For a list of all the ways technology has failed to improve the quality of life, please press three. - Alice Kahn