[gobolinux-devel] env vars in /etc/zprofile instead of zshrc

Jonatan Liljedahl lijon at kymatica.com
Tue Apr 1 05:20:08 NZDT 2008


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:
>>
>> lijon at Kymatix ~]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 ]
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: slim.conf
Url: http://lists.gobolinux.org/pipermail/gobolinux-devel/attachments/20080331/99288d3f/attachment.pl 


More information about the gobolinux-devel mailing list