| Summary: | New startplasma-* apps corrupt/truncate exported shell functions | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Wolfgang Bauer <wbauer1> |
| Component: | general | Assignee: | Aleix Pol <aleixpol> |
| Status: | RESOLVED FIXED | ||
| Severity: | critical | CC: | asn, chris-hartmann, fabian, nate, plasma-bugs-null, vkrevs |
| Priority: | NOR | ||
| Version First Reported In: | 5.17.0 | ||
| Target Milestone: | 1.0 | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| URL: | https://phabricator.kde.org/D24750 | ||
| Latest Commit: | https://commits.kde.org/plasma-workspace/595ab88bc2ee0ed32da577ec8ae22efee90865b5 | Version Fixed/Implemented In: | 5.17.1 |
| Sentry Crash Report: | |||
|
Description
Wolfgang Bauer
2019-10-18 07:03:19 UTC
Might be possible to fix by running plasma-sourceenv.sh with an empty environment and avoiding to read /etc/profile. I'll give it a try. Setting impact to critical as this breaks a ton of applications and scripts. (In reply to Fabian Vogt from comment #1) > Might be possible to fix by running plasma-sourceenv.sh with an empty > environment and avoiding to read /etc/profile. I'll give it a try. Actually, that might break some scripts which rely on (WAYLAND_)DISPLAY, XDG_RUNTIME_DIR or similar. It should be sufficient to print the variables in a better format, like delimited by \0. Git commit 595ab88bc2ee0ed32da577ec8ae22efee90865b5 by Fabian Vogt. Committed on 18/10/2019 at 12:38. Pushed by fvogt into branch 'Plasma/5.17'. Fix reading environment variables with newline Summary: Use '\0' as separator as '\n' is likely to appear in values. Test Plan: /etc/profile.d/mc.sh exported an mc() function, which resulted in "syntax error: unexpected end of file" in the Plasma session. Now the mc function is correctly set in the environment. Reviewers: #plasma, apol, davidedmundson, adridg Reviewed By: #plasma, apol, davidedmundson, adridg Subscribers: davidedmundson, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D24750 M +1 -1 startkde/plasma-sourceenv.sh M +1 -1 startkde/startplasma.cpp https://commits.kde.org/plasma-workspace/595ab88bc2ee0ed32da577ec8ae22efee90865b5 |