Bug 63157

Summary: Improvement of detecting KDE session
Product: Portland Reporter: Chenxiong Qi <qcxhome>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Chenxiong Qi 2013-04-05 10:31:31 UTC
I see that xdg-utils detects whether a KDE session is running by checking the equivlent between KDE_FULL_SESSION and true in every xdg-* utility. According to what a document in KDE's techbase describes, it'd better check whether KDE_FULL_SESSION is an empty string instead of a true value.

So, in each detectDE function in every xdg-* utility, following modification is better and stable for KDE's future possible change to variable KDE_FULL_SESSION.

if [ x"$KDE_FULL_SESSION" != x"" ]; then DE=kde;

Ref: http://techbase.kde.org/KDE_System_Administration/Environment_Variables#KDE_FULL_SESSION
Comment 1 Rex Dieter 2014-02-07 16:51:27 UTC
commited, thanks.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.