You are not logged in.

#1 2022-10-06 07:54:44

zw963
Member
Registered: 2018-06-18
Posts: 200

$HOME/.profile not source automatically when start GDM + GNOME session

I run pacman -Syu today, after done, i found all code in my $HOME/.profile not sourced by GNOME + Wayland + GDM.

i have to add `source ~/.profile` manually in my ~/.bashrc to make my start up script work.

so, this is intention, right?

Thank you.

Offline

#2 2022-10-06 08:00:33

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,668

Re: $HOME/.profile not source automatically when start GDM + GNOME session

Yes, ~/.profile is generally unlikely to be sourced by graphical logins. There's https://wiki.archlinux.org/title/Enviro … nvironment or https://wiki.archlinux.org/title/Enviro … ng_pam_env

Offline

#3 2022-10-06 08:27:48

zw963
Member
Registered: 2018-06-18
Posts: 200

Re: $HOME/.profile not source automatically when start GDM + GNOME session

Thanks

How to fix that?

Anyway, `source ~/.profile` in .bashrc is not equivalent graphical logins, because some PATH setting in ~/.profile is gone, e.g. i add a desktop file which run one shell script, but, it can't find it anymore because $PATH is not include it when desktop file is initalize.

Offline

#4 2022-10-06 08:38:50

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,668

Re: $HOME/.profile not source automatically when start GDM + GNOME session

I posted links to other places that ARE being sourced, you need to adjust PATH settings there if you want them to be valid for other parts of your session.

Offline

Board footer

Powered by FluxBB