I had a script residing in the mentioned directory to set some environment variables for Intel compilers. It did this by calling a script in the compiler directory with the right arguments. After uninstalling these compilers, this script was obviously no longer present, and I could no longer seem to start a Plasma session. Reproducible: Always Steps to Reproduce: 1. Have a script in ~/.config/plasma-workspace/env referencing a non-existent file. 2. Attempt to start a Plasma session. Actual Results: Splash screen displays (if enabled), but progress bar does not fill. Otherwise a black screen with the mouse cursor. Expected Results: The desktop session is started as expected.
Created attachment 94491 [details] .xsession-errors The only contents of .xsession-errors upon encountering the bug.
If you have the contents of the script handy, it would be good to have it here for testing.
Created attachment 94495 [details] The offending script This is the offending part from the script.
Git commit 2870b5e69bf892c3d08df2d8ee11491542e0d796 by David Edmundson, on behalf of Steven Franzen. Committed on 20/09/2015 at 15:58. Pushed by davidedmundson into branch 'Plasma/5.4'. Continue even if script returns errors /bin/sh stops execution upon finding a nonzero exit code, which means that startkde will not continue if a script in .config/plasma-workspace/env/ produces an error. This small fix will execute a no-op in such a case, so that errors will not affect startkde's progress, while still being visible in .xsession-errors. REVIEW: 125323 M +1 -1 startkde/startkde.cmake http://commits.kde.org/plasma-workspace/2870b5e69bf892c3d08df2d8ee11491542e0d796
This fix broke env processing for us (fedora), source'ing the items in subshell means the environment changes cannot propogate to the parent shell.
I can confirm this. Reopening.
It was fixed in this commit : https://quickgit.kde.org/?p=plasma-workspace.git&a=commitdiff&h=f869daca8244131f6b452e2c15b4dee5903ff768
Thanks, Bhushan. Confirmed that fix works in Debian Sid with dash as system shell.