You are not logged in.

#1 2015-02-04 20:02:48

BorisBera
Member
Registered: 2012-07-01
Posts: 4

lightdm use zsh as login shell

I am currently using lightdm as my login manager. I am also using zsh as my shell. I have a lot of settings in my zprofile zshenv and zshrc files. I would like to have lightdm load my zprofile zshenv and zshrc so that all my environment variables are configured properly on my desktop.

Is there a way to do this?

Offline

#2 2015-02-04 21:31:15

runical
Member
From: The Netherlands
Registered: 2012-03-03
Posts: 896

Re: lightdm use zsh as login shell

If you switched the login shell to ZSH for your user, this will happen automatically. There is an article on the wiki describing how to change the login shell.

Offline

#3 2015-02-05 05:10:26

BorisBera
Member
Registered: 2012-07-01
Posts: 4

Re: lightdm use zsh as login shell

I have had zsh as my default shell the whole time. It's not working.

When I open a terminal, zsh opens up and loads zshenv and zshrc as it should. It doesn't load zprofile since opening a terminal doesn't start a login shell. Of course this is only for the current zsh session. Nothing is loaded for the actual desktop process (In my case awesome).

In my zprofile I set the add a few entries to the path. When I open up a terminal these paths are not set in the environment. It is probably because zprofile never gets loaded at all.

Offline

#4 2015-02-05 07:24:02

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: lightdm use zsh as login shell

ArchWiki wrote:

/etc/profile is not a part of the regular list of startup files run for Zsh, but is sourced from /etc/zsh/zprofile in the zsh package. Users should take note that /etc/profile sets the $PATH variable which will overwrite any $PATH variable set in ~/.zshenv. To prevent this, please set the $PATH variable in ~/.zshrc. (It's not recommended to replace the default one line in /etc/zsh/zprofile with something other, it'll break the integrality of other packages which provide some scripts in /etc/profile.d)

https://wiki.archlinux.org/index.php/Zs … ault_shell
wink


Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB