[-- text/plain, size 0.6K, charset UTF-8, 29 lines, encoding quoted-printable --]
On Sat, Oct 26, 2024 at 5:20 AM Chris Green <[email protected]> wrote:
I have installed Debian 12 on my Lenovo Thinkpad T470. It all went
pretty smoothly but for some reason when I do a GUI login my .profile doesn't get run.
If I ssh into the laptop then .profile does get run.
So what might cause this?
What Desktop Environment are you using?
I have installed Debian 12 on my Lenovo Thinkpad T470. It all went
pretty smoothly but for some reason when I do a GUI login my .profile
doesn't get run.
As I understand it, those are meant to be run by a _login shell_. ThisYes, and entering one's name and password at GUI start-up **is**
sets them apart from e.g. ~/.bashrc which is read each time _bash_ is
started.
logging in.
On 26 Oct 2024 10:13 +0100, from [email protected] (Chris Green):
I have installed Debian 12 on my Lenovo Thinkpad T470. It all went
pretty smoothly but for some reason when I do a GUI login my .profile doesn't get run.
Is starting a GUI session (whether X11/Xorg or Wayland) even
_supposed_ to execute ~/.profile (or ~/.bash_profile)? My
understanding is that it is not.
As I understand it, those are meant to be run by a _login shell_. This
sets them apart from e.g. ~/.bashrc which is read each time _bash_ is started.
And similarly for the corresponding system-wide files in /etc, of
course.
**What problem are you _actually_ trying to solve?** Presumably
executing ~/.profile on GUI session startup isn't your end goal in
itself, but merely an attempt at a way to accomplish something else.
If you tell us what your end goal is, we might be able to suggest a
better way to accomplish that.
Michael Kj�rling <[email protected]> wrote:
On 26 Oct 2024 10:13 +0100, from [email protected] (Chris Green):
I have installed Debian 12 on my Lenovo Thinkpad T470. It all went pretty smoothly but for some reason when I do a GUI login my .profile doesn't get run.
Is starting a GUI session (whether X11/Xorg or Wayland) even
_supposed_ to execute ~/.profile (or ~/.bash_profile)? My
understanding is that it is not.
Well on my previous XFCE installation on xubuntu it certainly did run ~/.profile.
On 26/10/2024 18:08, Chris Green wrote:
Well on my previous XFCE installation on xubuntu it certainly did run ~/.profile.
LightDM package in Ubuntu contains an additional script that reads
~/.profile (like SDDM in Debian). Some hints:
- <https://wiki.debian.org/EnvironmentVariables#Using_graphical_display_manager>
- <https://wiki.debian.org/LightDM#User_configuration>
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 153:18:43 |
| Calls: | 12,091 |
| Calls today: | 4 |
| Files: | 15,000 |
| Messages: | 6,517,667 |