Summary: | When using Systemd boot, startplasma-x11 strips trailing spaces from its environment variables for calling plasmashell process | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | kde |
Component: | Startup process | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | REOPENED --- | ||
Severity: | normal | CC: | kde, kde, nate |
Priority: | NOR | ||
Version: | 5.26.5 | ||
Target Milestone: | 1.0 | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
kde
2023-02-02 18:23:44 UTC
If you disable systemd boot by running `kwriteconfig5 --file startkderc --group General --key systemdBoot false` in a terminal window and then rebooting, does it still happen? (In reply to Nate Graham from comment #1) > If you disable systemd boot by running `kwriteconfig5 --file startkderc > --group General --key systemdBoot false` in a terminal window and then > rebooting, does it still happen? Can confirm, "~/.config/startkderc" has been created with content: [General] systemdBoot=false Now it works as expected: /etc/profile.d/*: export TESTVAR=" xxx " echo x${TESTVAR}x "x xxx x" If related: I'm not using systemd-boot btw. rEFInd just calls vmlinuz. In that case it's an issue in either systemd or our generator code. I'll leave it here for David Edmundson to triage further. Might also be intentional. In any event, relying on trailing spaces seems fragile. (In reply to Nate Graham from comment #3) > Might also be intentional. In any event, relying on trailing spaces seems fragile. Stripping trailing white spaces for all environment variables feels worse. I don't have a better example than my $PS1 which already wasn't critical enough :-) Maybe a trailing LF is being stripped too? That could affect scripts in envs if the recommended LF on the last line is missing. Thank you for your time! If it's a bug in our code, I think it's reasonable to fix it. I'm just trying to prepare you for a potential response of "this is intentional, deal with it" if it ends up being a Systemd issue. I've just noticed my $PS1 correctly displays the trailing space again. So this bug seems to be fixed silently? If a dev did something, I would grant a RESOLVED. I did not test on Kubuntu, but my Arch machine is fine now. Thank you! I don't think we made any changes here, so it was probably a systemd change/fix. Thanks a lot for following up! Sorry, my bad... Forgot to undo "systemdBoot false". Bug still exists. I would dig into the KDE code to investigate, but I can't find the component. |