https://bugs.kde.org/show_bug.cgi?id=487147
Bug ID: 487147 Summary: INVOCATION_ID and JOURNAL_STREAM environment variables should not be propagated from plasmashell Classification: Plasma Product: plasmashell Version: 6.0.4 Platform: Arch Linux OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Startup process Assignee: plasma-b...@kde.org Reporter: ctx...@gmail.com CC: k...@davidedmundson.co.uk Target Milestone: 1.0 SUMMARY Plasmashell should not give its $INVOCATION_ID and $JOURNAL_STREAM environment variable to child processes. These are supposed to be set by systemd when starting an application so that this application can detect that it runs under systemd as a service and use sd-journal API to enhance logging for example. STEPS TO REPRODUCE 1. Launch a plasma session using systemd 2. Starts a terminal emulator (konsole, kitty, ...) 3. run `echo $JOURNAL_STREAM` OBSERVED RESULT Both `$INVOCATION_ID` and `$JOURNAL_STREAM` are defined and have the same values as within `plasmashell`. This is confirmed by `sudo strings /proc/$(pidof plasmashell)/environ | grep JOURNAL` EXPECTED RESULT `$INVOCATION_ID` and `$JOURNAL_STREAM` should NOT be defined. I checked the expected result with Ubuntu GDDM. SOFTWARE/OS VERSIONS Linux/KDE Plasma: 6.8.9-arch1-2 KDE Plasma Version: 6.0.4 KDE Frameworks Version: 6.2.0 Qt Version: 6.7.0 ADDITIONAL INFORMATION Tested on with a wayland session, will try with X11 in few hours. Documentation about those variables: https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#%24JOURNAL_STREAM https://www.freedesktop.org/software/systemd/man/latest/systemd.exec.html#%24INVOCATION_ID Some comments on other unrelated bugs gives a full env dump, showing that those variables are also, wrongly, defined in their situations: https://bugs.kde.org/show_bug.cgi?id=453202 https://bugs.kde.org/show_bug.cgi?id=468460 https://bugs.kde.org/show_bug.cgi?id=469839 -- You are receiving this mail because: You are watching all bug changes.