Bug 321785

Summary: startkde: Also source scripts in /etc/kde/env and /etc/kde/shutdown
Product: [I don't know] kde Reporter: Heiko Becker <heiko.becker>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: minor    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: allows startkde to also search in /etc/kde/env and /etc/kde/shutdown

Description Heiko Becker 2013-06-30 10:40:00 UTC
Currently the startkde script is looking for scripts in $PREFIX/env/ and $KDEHOME/env.  The former location is odd, especially considering that it isn't obvious KDE could use something in there. No other package installs something to /usr/env/, at least on my system. Furthermore it violates the FHS in my opinion.

FHS 4.1:
"/usr is the second major section of the filesystem. /usr is shareable, read-only data. That means that /usr should be shareable between various FHS-compliant hosts and must not be written to. Any information that is host-specific or varies with time is stored elsewhere."

The attached, exemplary patch also allows searching in /etc/kde/env  (and /etc/kde/shutdown for shutdown scripts).

Reproducible: Always
Comment 1 Heiko Becker 2013-06-30 10:40:51 UTC
Created attachment 80861 [details]
allows startkde to also search in /etc/kde/env and /etc/kde/shutdown
Comment 2 Andrew Crouthamel 2018-11-10 03:15:40 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Heiko Becker 2018-11-10 09:17:34 UTC
I think this was solved when Plasma switched to Qt5.