Summary: | startkde fails silently upon script error in ~/.config/plasma-workspace/env | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Steven Franzen <sfranzen85> |
Component: | general | Assignee: | David Edmundson <kde> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bhush94, lbeltrame, Martin, plasma-bugs, rdieter |
Priority: | NOR | ||
Version: | 5.4.0 | ||
Target Milestone: | 1.0 | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/plasma-workspace/2870b5e69bf892c3d08df2d8ee11491542e0d796 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: |
.xsession-errors
The offending script |
Description
Steven Franzen
2015-09-09 18:10:14 UTC
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. |