https://bugs.kde.org/show_bug.cgi?id=503467
Bug ID: 503467
Summary: /etc/profile runs twice on login
Classification: Plasma
Product: plasma-mobile
Version: unspecified
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
SUMMARY
The plasma mobile session runs /etc/profile twice if it is started from SDDM.
STEPS TO REPRODUCE
1. Install SDDM and plasma mobile
2. Add a marker in `/etc/profile`, like `echo "foo" >> /home/<user>/log.txt
3. Log in
4. Open a konsole and run `cat log.txt`
OBSERVED RESULT
The output contains two lines of `foo`
EXPECTED RESULT
Only a single line of `foo`
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Debian 12
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
ADDITIONAL INFORMATION
This problem causes my `PATH` to be set incorrectly, because the
`/etc/profile.d/nix.sh` script only sets the path if it is run for the first
time and `/etc/profile` resets the PATH when run a second time.
--
You are receiving this mail because:
You are watching all bug changes.