Daniele Maccari wrote:
> Jonatan Liljedahl wrote:
>> I'm trying out the SLIM display manager, and there's a problem with the
>> initialization of the shell.
>>
>> I have set this in slim.conf:
>>
>> login_cmd           exec /bin/zsh --login ~/.xinitrc %session
>>
>> Now, this runs .zprofile but not .zshrc, so I have put all my custom
>> environment variables in ~/.zprofile. But there's lots of things in
>> /etc/zshrc that should go in /etc/zprofile! For example reading the
>> Environment files from packages. This means that my desktop runs without
>> these environment variables set, and gives lots of troubles...
>>
>> The fix would be to move things to /etc/zprofile, like this:
>>
>> [EMAIL PROTECTED] ~]cat /etc/zprofile
>> export MANPATH="${goboPrefix}/System/Links/Manuals:${MANPATH}"
>> export INFOPATH="${goboPrefix}/System/Links/Manuals/info:${INFOPATH}"
>> export
>> LD_LIBRARY_PATH="${goboPrefix}/System/Links/Libraries:${LD_LIBRARY_PATH}"
>> export
>> C_INCLUDE_PATH="${goboPrefix}/System/Links/Headers${C_INCLUDE_PATH:+:$C_INCLUDE_PATH}"
>> export
>> CPLUS_INCLUDE_PATH="${goboPrefix}/System/Links/Headers${CPLUS_INCLUDE_PATH:+:$CPLUS_INCLUDE_PATH}"
>> export TMPDIR="${goboPrefix}/System/Variable/tmp"
>>
>>
>> export PATH="${goboPrefix}/System/Links/Executables:${PATH}:."
>>
>> # Source application environment settings.
>> local envcachefile="${goboPrefix}/System/Links/Environment/Cache"
>> [[ -e "$envcachefile" ]] || { cat
>> "${goboPrefix}/System/Links/Environment"/* > "$envcachefile" } 2> /dev/null
>> { source "$envcachefile" } 2> /dev/null
>> unset envcachefile
>>   
> Nice to see somebody has finally got the problem! :D
> I tried once too but I had the same problem with the zsh login. 
> Unfortunately I can't say what's wrong with it, since using simple sh or 
> bash worked perfectly. I hope you solve this, slim really deserves a try.

Yes, it works perfectly now. I'll attach my slim.conf for reference...

We should do a default GoboLinux slim theme. :)

-- 
/Jonatan         [ http://kymatica.com ]
# Path, X server and arguments (if needed)
# Note: -xauth $authfile is automatically appended
default_path        ./:/bin
default_xserver     /bin/X
#xserver_arguments   -dpi 75

# Commands for halt, login, etc.
halt_cmd            /sbin/shutdown -h now
reboot_cmd          /sbin/shutdown -r now
console_cmd         /usr/X11R6/bin/xterm -C -fg white -bg black +sb -T "Console 
login" -e /bin/sh -c "/bin/cat /etc/issue; exec /bin/login"
#suspend_cmd        /usr/sbin/suspend

# Full path to the xauth binary
xauth_path         /bin/xauth 

# Xauth file for server
authfile           /var/run/slim.auth


# Activate numlock when slim starts. Valid values: on|off
numlock             on

# Hide the mouse cursor (note: does not work with some WMs).
# Valid values: true|false
# hidecursor          false

# This command is executed after a succesful login.
# you can place the %session and %theme variables
# to handle launching of specific commands in .xinitrc
# depending of chosen session and slim theme
#
# NOTE: if your system does not have bash you need
# to adjust the command according to your preferred shell,
# i.e. for freebsd use:
# login_cmd           exec /bin/sh - ~/.xinitrc %session
login_cmd           exec /bin/zsh --login ~/.xinitrc %session

# Commands executed when starting and exiting a session.
# They can be used for registering a X11 session with
# sessreg. You can use the %user variable
#
# sessionstart_cmd      some command
# sessionstop_cmd       some command

# Start in daemon mode. Valid values: yes | no
# Note that this can overridden by the command line
# option "-d"
# daemon        yes

# Available sessions (first one is the default).
# The current chosen session name is replaced in the login_cmd
# above, so your login command can handle different sessions.
# see the xinitrc.sample file shipped with slim sources
sessions            rox,xfce4,icewm,wmaker,blackbox

# Executed when pressing F11 (requires imagemagick)
screenshot_cmd      import -window root /slim.png

# welcome message. Available variables: %host, %domain
welcome_msg         Welcome to %host

# shutdown / reboot messages
shutdown_msg       The system is halting...
reboot_msg         The system is rebooting...

# default user, leave blank or remove this line
# for avoid pre-loading the username.
#default_user        lijon

# current theme, use comma separated list to specify a set to 
# randomly choose from
current_theme       kymatix-slim

# Lock file
lockfile            /var/run/slim.lock

# Log file
logfile             /var/log/slim.log

_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to