Okay, so a script like this would work best on both?

        if [[ -x /usr/dt/config/Xsession.jds ]] ; then
                exec /usr/dt/config/Xsession.jds
        else if [[ -x /etc/X11/gdm/Xsession ]] ; then
                exec /etc/X11/gdm/Xsession /usr/bin/dtstart jds
        else
                # Good ol' failsafe
                xterm &
                exec twm
        fi

Can I assume these are all stable interfaces I don't need ARC contracts
for?

Thanks.

        -alan-

Brian Cameron wrote:
> Alan:
> 
> On Solaris Nevada, the best command to use is what both CDE login
> and GDM use:
> 
>   /usr/dt/config/Xsession.jds
> 
> On Indiana, the best command to use is the one GDM uses:
> 
>    /etc/X11/gdm/Xsession /usr/bin/dtstart jds
> 
> If you just run gnome-session directly, then the scripts to
> do things like set up fontpaths, input methods, xrdb, G11N
> stuff don't get run.
> 
> Brian
> 
> 
>> One of the things that's been on my to-do list for a while because
>> it bugs me is fixing the default session run by startx, xinit,
>> vncserver, etc. to start a GNOME session instead of the default
>> twm + xterm.    Users who want twm & xterm can always have a .xinitrc,
>> but the default should match what you get via gdm login.
>>
>> The question is, what command do I have them run to do that?
>> Is it different on Nevada vs. OpenSolaris 2008.11/2009.next?
>>
>> Does anyone have a good reason this is a bad idea?
>>
> 

-- 
        -Alan Coopersmith-           alan.coopersmith at sun.com
         Sun Microsystems, Inc. - X Window System Engineering


Reply via email to