[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: branches/KDE/3.5/kdebase
From: Luboš Luňák <l.lunak () kde ! org>
Date: 2006-09-01 10:18:41
Message-ID: 1157105921.638321.1601.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 579568 by lunakl:
In addition to $KDE_FULL_SESSION add also KDE_FULL_SESSION
X property set on the root window (of the default screen).
This allows detecting whether KDE is running even from things
like "ssh -X" or kdesu which don't preserve the environment.
See the comment for more details.
CCMAIL: kde-core-devel@kde.org
CCMAIL: hausmann@kde.org
M +18 -1 startkde
--- branches/KDE/3.5/kdebase/startkde #579567:579568
@@ -297,9 +297,23 @@
;;
esac
-# certain features such as Konqueror preloading work only with full KDE running
+# Mark that full KDE session is running (e.g. Konqueror preloading works only
+# with full KDE running). The KDE_FULL_SESSION property can be detected by
+# any X client connected to the same X session, even if not launched
+# directly from the KDE session but e.g. using "ssh -X", kdesu. $KDE_FULL_SESSION
+# however guarantees that the application is launched in the same environment
+# like the KDE session and that e.g. KDE utilities/libraries are available.
+# KDE_FULL_SESSION property is also only available since KDE 3.5.5.
+# The matching tests are:
+# For $KDE_FULL_SESSION:
+# if test -n "$KDE_FULL_SESSION"; then ... whatever
+# For KDE_FULL_SESSION property:
+# xprop -root | grep "^KDE_FULL_SESSION" >/dev/null 2>/dev/null
+# if test $? -eq 0; then ... whatever
+#
KDE_FULL_SESSION=true
export KDE_FULL_SESSION
+xprop -root -f KDE_FULL_SESSION 8t -set KDE_FULL_SESSION true
# We set LD_BIND_NOW to increase the efficiency of kdeinit.
# kdeinit unsets this variable before loading applications.
@@ -359,4 +373,7 @@
done
done
+unset KDE_FULL_SESSION
+xprop -root -remove KDE_FULL_SESSION
+
echo 'startkde: Done.' 1>&2
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic