Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#636108: lightdm: does not source ~/.profile

22 views
Skip to first unread message

Andrei POPESCU

unread,
Jul 31, 2011, 5:10:02 AM7/31/11
to
Package: lightdm
Version: 0.9.2-2
Severity: minor

Hello,

lightdm is not sourcing ~/.profile like other dm do (at least gdm2 and
slim).

Thanks,
Andrei

-- System Information:
Debian Release: wheezy/sid
APT prefers oldstable
APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=ro_RO.UTF-8, LC_CTYPE=ro_RO.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lightdm depends on:
ii adduser 3.113 add and remove users and groups
ii consolekit 0.4.5-1 framework for defining and trackin
ii dbus 1.4.14-1 simple interprocess messaging syst
ii debconf [debconf-2.0] 1.5.41 Debian configuration management sy
ii libc6 2.13-11 Embedded GNU C Library: Shared lib
ii libglib2.0-0 2.28.6-1 The GLib library of C routines
ii libpam0g 1.1.3-2 Pluggable Authentication Modules l
ii libxcb1 1.7-3 X C Binding
ii libxdmcp6 1:1.1.0-3 X11 Display Manager Control Protoc
ii lightdm-gtk-greeter 0.9.2-2 simple display manager (GTK+ greet

Versions of packages lightdm recommends:
ii xserver-xorg 1:7.6+7 X.Org X server

lightdm suggests no packages.

-- debconf information:
lightdm/daemon_name: /usr/sbin/lightdm
* shared/default-x-display-manager: lightdm

--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Andrei POPESCU

unread,
Aug 1, 2011, 4:20:01 AM8/1/11
to
On Du, 31 iul 11, 14:40:09, Yves-Alexis Perez wrote:
> tag 636108 wontfix
> thanks

>
> On dim., 2011-07-31 at 12:01 +0300, Andrei POPESCU wrote:
> > lightdm is not sourcing ~/.profile like other dm do (at least gdm2 and
> > slim).
>
> # /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
> # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
>
> I don't think it's really intended to be sourced by a dm. If you still
> want the behavior, put stuff in .xsessionrc (sourced by scripts
> in /etc/X11/Xsession.d).

I won't comment on your statement that the dm is not the right place,
but I strongly believe ~/.profile should be sourced from somewhere by
*default*, just as it is done on a console login.

Do you mind if I move the discussion on -devel?

Regards,
Andrei
--
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic

signature.asc

Yves-Alexis Perez

unread,
Aug 1, 2011, 4:20:01 AM8/1/11
to
On lun., 2011-08-01 at 11:08 +0300, Andrei POPESCU wrote:
> I won't comment on your statement that the dm is not the right place,
> but I strongly believe ~/.profile should be sourced from somewhere by
> *default*, just as it is done on a console login.

It's read by bash (and zsh and few other shells I guess).


>
> Do you mind if I move the discussion on -devel?

No, go ahead.
--
Yves-Alexis

signature.asc

Andrei POPESCU

unread,
Aug 3, 2011, 5:10:02 AM8/3/11
to
[Bcc'd all *dm maintainers and debian-x, in case they want to comment,
apologize if you get this multiple times]

Dear Debian Developers,

Background: most common ways[1] of logging in to a Debian system involve
executing or sourcing ~/.profile at some point, but not all of them.

[1] tested gdm, slim, console login, from memory I recall kdm and gdm3
doing the same

IMVHO I think it shouldn't matter how a user logs in, the environment
should be as much as possible identical, but I'm not sure this belongs
in the *dm. What do you think?

Kind regards,

signature.asc

Ed Siefker

unread,
Oct 18, 2023, 1:50:06 PM10/18/23
to
Can we revisit this issue? Upstream lightdm sources .profile, I don't
understand why Debian changes it.

Even if .profile shouldn't be used for graphical shells, ~/.local/bin
should clearly be in PATH out of the box.
If sourcing .profile is unacceptable, the contents of .profile should
be moved somewhere they will get sourced.
It's 12 years later, and this issue is still inconveniencing users.

Thanks
-Ed
0 new messages