Summary: | [systemd] some environment variables got overriden when use plasma systemdBoot | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Rocket Aaron <i> |
Component: | general | Assignee: | David Edmundson <kde> |
Status: | RESOLVED NOT A BUG | ||
Severity: | normal | CC: | CoelacanthusHex, katyaberezyaka, nate, plasma-bugs |
Priority: | HI | ||
Version: | 5.21.1 | ||
Target Milestone: | 1.0 | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=433388 | ||
Latest Commit: | Version Fixed In: |
Description
Rocket Aaron
2021-02-26 14:04:04 UTC
The XAUTHORITY thing is causing Bug 433388. >2. create `~/.config/environment.d/99-env.conf` with content:
XAUTHORITY=${XDG_RUNTIME_DIR}/Xauthority
It's a good thing that's overridden, it's set by SDDM on login.
PATH I don't know of, but it's not our code directly.
We do correctly source a bunch of scripts during login /etc/X11/Xsession.d for example, anything set later overrides something set very early in the boot script.
I'm happy to investigate further if you can pinpoint something we're actually doing wrong, but so far I can't see anything
I wonder if there is a method to set `PATH` env for plasmashell process. Since Plasma has adopt systemd to handle service startup stuff, it's environment.d definition should be a reasonable choice. I have several scripts in `~/.local/bin`, and want to invoke them via krunner. And if possible, could you tell me that where are those environment vairables got handled? Is it in sddm, plasma, or both? And in Arch Linux, there is no `/etc/X11/Xsession.d` directory... |