Shell loading

Asked by Mark

Hello,

I've found that when logging in graphically the shell loading process works differently than logging in through the console. Environment variables such as $BASH_VERSION and $ZSH_VERSION are not set when logging in graphically, and a script specifically written for bash and zsh that I tried to use while logging in causes the login process to restart and returns me to the login prompt (which stops me from logging in while this script is in place), when logging in through the console the same setup works fine though.

Here's the case where I am experiencing the issue: https://github.com/postmodern/chruby/issues/56

Is the shell loading process working as it should when logging in graphically, and if so is there any documentation on how it works (and if so, where can I find it)? How should I make this work?

Best regards,
Mark

Question information

Language:
English Edit question
Status:
Expired
For:
Light Display Manager Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Robert Ancell (robert-ancell) said :
#2

whoops, re-opening.

Revision history for this message
Robert Ancell (robert-ancell) said :
#3

When logging in lightdm runs the script /usr/sbin/lightdm-session for each session. I'm not sure exactly what your problem is but following that script should find it.

Revision history for this message
Mark (mark-kremer) said :
#4

Thanks for pointing me to that script. I am betting that this script is not executed by my login shell (since my scripts in /etc/profile/*.sh are breaking on bash syntax)?

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.