Bug 63157 - Improvement of detecting KDE session
Summary: Improvement of detecting KDE session
Status: RESOLVED FIXED
Alias: None
Product: Portland
Classification: Unclassified
Component: xdg-utils (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Portland Bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-05 10:31 UTC by Chenxiong Qi
Modified: 2014-02-07 16:51 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.