lightdm doesn't call bashrc

Bug #1252456 reported by MetaChrome
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
lightdm (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

1. 12.04.3 LTS
2.

lightdm:
  Installed: 1.2.3-0ubuntu2.3
  Candidate: 1.2.3-0ubuntu2.3
  Version table:
     1.9.3-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
 *** 1.2.3-0ubuntu2.3 0
        990 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1.2.1-0ubuntu1 0
        990 http://us.archive.ubuntu.com/ubuntu/ precise/main amd64 Packages

3. The expected behavior is that .bashrc is called on login on desktop if the user's shell is bash. Please standardize and specify documentation with regards to the expected workflow for initializing an environment and executing .bashrc on desktop login.

4. What occurs is that lightdm-session is called with sh (dash presumably) and the provided .bashrc are not called because ligthdm-session is non-bash non-interactive shell.

It was addressed here, but there is no explanation specific as to the logic of this behavior and the contemplation regarding it is perhaps inadequate as it was not immediately apparent to the responders what was happening though it should be quite obvious as environment initialization is quite important:

https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/962270

Revision history for this message
MetaChrome (imagenesis) wrote :

To clarify, this refers to the unclear behavior of ligthdm-session and the provided profile and bashrc files.

Presumably, lightdm-session should be run non interactively as it is executing the display manager daemon.

I guess then this is an issue of whether we want to retain the current behavior of running with sh and providing the documentation to initializing the display environment. Namely:

1. In general, for what reason does one not want to execute bashrc if it is not an interactive shell (as provided by the standard bashrc?)

Perhaps it would be valuable to specify the behavior in documentation and also specify how the selection of a user's shell type ties in as this is a question I have as well.

MetaChrome (imagenesis)
description: updated
MetaChrome (imagenesis)
summary: - Call ligthdm-session with bash interactive, check for bash_profile
+ lightdm doesn't call bashrc
MetaChrome (imagenesis)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lightdm (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.