| Summary: | /etc/profile runs twice on login | ||
|---|---|---|---|
| Product: | [Plasma] plasma-mobile | Reporter: | 3n16v85k |
| Component: | general | Assignee: | Plasma Mobile Bugs <plasma-mobile-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | carl, espidev |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
3n16v85k
2025-04-28 09:54:06 UTC
I've also tried debugging it a bit by adding this line: `echo ${BASH_SOURCE[@]} >> /home/<user>/log.txt` which shows one expected result of `/etc/profile /etc/sddm/wayland-session`, but the second line is blank so I don't know where that second call comes from.
Devin Lin on matrix showed me that `/usr/bin/startplasmamobile` starts by sourcing `/etc/profile`. This is the line: https://invent.kde.org/plasma/plasma-mobile/-/blob/master/bin/startplasmamobile.in?ref_type=heads#L8 Removing that line fixes the bug. I'm not really sure whose responsibility it is to source /etc/profile, currently if the session is launched directly through the systemd unit file we provide there would not be a second "source" of /etc/profile... |