Stephen Hahn wrote:
> * Mario Goebbels <me at tomservo.cc> [2007-11-04 13:01]:
>> Because it's geekier and because I'd like my laptop not always to start
>> with X, I figured I try creating a startx script. So far, it kind of works.
> 
>   I have one of these, too.  
> 
>   Desktop folks:  is there a reason we don't have a /usr/bin/startx
>   similar to Mario's?

Meanwhile I've most kinks hammered out. Especially the Internet/Intranet
Input Method module is giving me grief, not using it fixes it and I
don't notice a difference while typing. I've also looted the .jds files
in /usr/dt/config. My xinitrc looks like this:



# Copied 1:1 from the JDS session scripts from /usr/dt/config
if [ "x$LC_ALL" = x -a "x$LANG" = x -o "x$LANG" = xC ]; then
  :
else
  LC_MESSAGES="$LANG"
  export LC_MESSAGES
fi

g_filename_encodi...@locale,UTF-8
export G_FILENAME_ENCODING
G_BROKEN_FILENAMES=yes
export G_BROKEN_FILENAMES
SDT_NO_TOOLTALK=1
export SDT_NO_TOOLTALK

# There's a problem with freezing input.
# Not setting it do default to XInput method.
# GTK_IM_MODULE=iiim
# export GTK_IM_MODULE

command=/usr/bin/gnome-session

# DBus is needed for GNOME to work properly.
# DT scripts don't fail, I will!
if [ -x "/usr/bin/dbus-launch" -a -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
    command="/usr/bin/dbus-launch --exit-with-session $command"
else
    echo "$0: dbus-launch not found."
    exit 1
fi

# Apparently good to have this. Don't ask why.
if [ -x "/usr/bin/ssh-agent" ] && [ -z "$SSH_AUTH_SOCK" ]; then
    command="/usr/bin/ssh-agent -- $command"
else
    echo "$0: ssh-agent not found."
fi

# Get rid of these annoying IM boxes
gconftool-2 -s /desktop/gnome/interface/gtk-im-status-style -t string none
gconftool-2 -s /desktop/gnome/interface/gtk-im-preedit-style -t string none

# The IM module 'iiim' is an annoying piece of crap. If it's not loaded,
# it doesn't cause problems. Disabling IM's this way as a precaution.
gconftool-2 -s /desktop/gnome/input_methods/enable -t string false

exec $command

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 648 bytes
Desc: OpenPGP digital signature
URL: 
<http://mail.opensolaris.org/pipermail/desktop-discuss/attachments/20071104/a4437fa5/attachment.bin>

Reply via email to