<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Oh fun</title>
	<atom:link href="http://www.purinchu.net/wp/2009/06/12/oh-fun/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.purinchu.net/wp/2009/06/12/oh-fun/</link>
	<description>The answer to life, the universe, and everything</description>
	<lastBuildDate>Thu, 09 Feb 2012 12:27:13 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: <img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=fd2cc83569888000519722274650c29a&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/8751dac5da9db17.png" alt="mandarin Identicon Icon" height="35" width="35" /> mandarin</title>
		<link>http://www.purinchu.net/wp/2009/06/12/oh-fun/comment-page-1/#comment-6666</link>
		<dc:creator><img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=fd2cc83569888000519722274650c29a&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/8751dac5da9db17.png" alt="mandarin Identicon Icon" height="35" width="35" /> mandarin</dc:creator>
		<pubDate>Wed, 11 Jan 2012 22:30:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.purinchu.net/wp/?p=459#comment-6666</guid>
		<description>sorry, accidently hit  submit,
was trying to say that the link changed to
http://api.kde.org/4.x-api/kde-workspace-apidocs/libs/kworkspace/html/namespaceKWorkSpace.html

(no base in kdebase anymore)</description>
		<content:encoded><![CDATA[<p>sorry, accidently hit  submit,<br />
was trying to say that the link changed to<br />
<a href="http://api.kde.org/4.x-api/kde-workspace-apidocs/libs/kworkspace/html/namespaceKWorkSpace.html" rel="nofollow">http://api.kde.org/4.x-api/kde-workspace-apidocs/libs/kworkspace/html/namespaceKWorkSpace.html</a></p>
<p>(no base in kdebase anymore)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=fd2cc83569888000519722274650c29a&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/8751dac5da9db17.png" alt="mandarin Identicon Icon" height="35" width="35" /> mandarin</title>
		<link>http://www.purinchu.net/wp/2009/06/12/oh-fun/comment-page-1/#comment-6665</link>
		<dc:creator><img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=fd2cc83569888000519722274650c29a&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/8751dac5da9db17.png" alt="mandarin Identicon Icon" height="35" width="35" /> mandarin</dc:creator>
		<pubDate>Wed, 11 Jan 2012 22:27:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.purinchu.net/wp/?p=459#comment-6665</guid>
		<description>Hi,
The link to the parameter documentation named
KWorkSpace::canShutdown()
changed from</description>
		<content:encoded><![CDATA[<p>Hi,<br />
The link to the parameter documentation named<br />
KWorkSpace::canShutdown()<br />
changed from</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=9d27b1d666fdd0ade79844dd37f4d5c4&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/3c3bb5fb2b60968.png" alt="James Identicon Icon" height="35" width="35" /> James</title>
		<link>http://www.purinchu.net/wp/2009/06/12/oh-fun/comment-page-1/#comment-6083</link>
		<dc:creator><img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=9d27b1d666fdd0ade79844dd37f4d5c4&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/3c3bb5fb2b60968.png" alt="James Identicon Icon" height="35" width="35" /> James</dc:creator>
		<pubDate>Mon, 13 Jul 2009 14:11:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.purinchu.net/wp/?p=459#comment-6083</guid>
		<description>thanks for the KDE_SESSION_VERSION info.
i&#039;ve made a post here: http://dazzle.cs.mcgill.ca/wordpress/?p=11 which references your blog.
(i&#039;m trying to document things i find useful, such as how you&#039;ve done above)
thanks again!</description>
		<content:encoded><![CDATA[<p>thanks for the KDE_SESSION_VERSION info.<br />
i&#8217;ve made a post here: <a href="http://dazzle.cs.mcgill.ca/wordpress/?p=11" rel="nofollow">http://dazzle.cs.mcgill.ca/wordpress/?p=11</a> which references your blog.<br />
(i&#8217;m trying to document things i find useful, such as how you&#8217;ve done above)<br />
thanks again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=77bfae11a6e64f5e8dba6236fbc65bbc&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/85999e16b245759.png" alt="mpyne Identicon Icon" height="35" width="35" /> mpyne</title>
		<link>http://www.purinchu.net/wp/2009/06/12/oh-fun/comment-page-1/#comment-6080</link>
		<dc:creator><img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=77bfae11a6e64f5e8dba6236fbc65bbc&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/85999e16b245759.png" alt="mpyne Identicon Icon" height="35" width="35" /> mpyne</dc:creator>
		<pubDate>Sun, 12 Jul 2009 02:45:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.purinchu.net/wp/?p=459#comment-6080</guid>
		<description>James: I looked at the source but it ended up being available at the documentation for KWorkspace IIRC.  Of course how you go from session management to KWorkspace is kind of strange to me but eh, whatever.

I have no clue how to detect if you&#039;re running under a GNOME session but KDE_FULL_SESSION is the way to detect KDE.  Note that it&#039;s only been implemented since 3.5.5 so as long as you don&#039;t need to detect older KDE sessions that should be fine.

If you need to separate between KDE 3.5 and KDE 4 you can use the KDE_SESSION_VERSION variable added in KDE 4.

Please see kdebase/workspace/startkde.cmake for more information (or just vim `which startkde` if you have KDE installed).  grep for KDE_FULL_SESSION.</description>
		<content:encoded><![CDATA[<p>James: I looked at the source but it ended up being available at the documentation for KWorkspace IIRC.  Of course how you go from session management to KWorkspace is kind of strange to me but eh, whatever.</p>
<p>I have no clue how to detect if you&#8217;re running under a GNOME session but KDE_FULL_SESSION is the way to detect KDE.  Note that it&#8217;s only been implemented since 3.5.5 so as long as you don&#8217;t need to detect older KDE sessions that should be fine.</p>
<p>If you need to separate between KDE 3.5 and KDE 4 you can use the KDE_SESSION_VERSION variable added in KDE 4.</p>
<p>Please see kdebase/workspace/startkde.cmake for more information (or just vim `which startkde` if you have KDE installed).  grep for KDE_FULL_SESSION.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=9d27b1d666fdd0ade79844dd37f4d5c4&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/3c3bb5fb2b60968.png" alt="James Identicon Icon" height="35" width="35" /> James</title>
		<link>http://www.purinchu.net/wp/2009/06/12/oh-fun/comment-page-1/#comment-6077</link>
		<dc:creator><img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=9d27b1d666fdd0ade79844dd37f4d5c4&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/3c3bb5fb2b60968.png" alt="James Identicon Icon" height="35" width="35" /> James</dc:creator>
		<pubDate>Thu, 09 Jul 2009 21:00:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.purinchu.net/wp/?p=459#comment-6077</guid>
		<description>many thanks, i&#039;ve been trying to find documentation on those three int&#039;s too. funny that i should find it here, and not on a kde website. oh well. in case it&#039;s useful to you, here are the docs for the gnome version (not to incite DE wars, but because i was looking for them too)
http://www.gnome.org/~mccann/gnome-session/docs/gnome-session.html#org.gnome.SessionManager.Logout

ps: did you get your answer from the source, or is there some magical documentation somewhere else?

pps: in case you happen to know and don&#039;t mind being asked, what is the *correct* way to detect which desktop environment is running. at the moment i have something that looks like (python):

def session():
	# this was adapted from:
	# http://gitweb.compiz-fusion.org/?p=fusion/misc/compiz-manager;a=blob;f=compiz-manager
	# TODO: is there a better way to implement this ?
	if os.name == &#039;nt&#039;: return &#039;windows&#039;
	elif os.getenv(&#039;KDE_FULL_SESSION&#039;) == &#039;true&#039;: return &#039;kde&#039;
	elif os.getenv(&#039;GNOME_DESKTOP_SESSION_ID&#039;) != &#039;&#039;: return &#039;gnome&#039;
	else: return &#039;&#039;


cheers!
_J</description>
		<content:encoded><![CDATA[<p>many thanks, i&#8217;ve been trying to find documentation on those three int&#8217;s too. funny that i should find it here, and not on a kde website. oh well. in case it&#8217;s useful to you, here are the docs for the gnome version (not to incite DE wars, but because i was looking for them too)<br />
<a href="http://www.gnome.org/~mccann/gnome-session/docs/gnome-session.html#org.gnome.SessionManager.Logout" rel="nofollow">http://www.gnome.org/~mccann/gnome-session/docs/gnome-session.html#org.gnome.SessionManager.Logout</a></p>
<p>ps: did you get your answer from the source, or is there some magical documentation somewhere else?</p>
<p>pps: in case you happen to know and don&#8217;t mind being asked, what is the *correct* way to detect which desktop environment is running. at the moment i have something that looks like (python):</p>
<p>def session():<br />
	# this was adapted from:<br />
	# <a href="http://gitweb.compiz-fusion.org/?p=fusion/misc/compiz-manager;a=blob;f=compiz-manager" rel="nofollow">http://gitweb.compiz-fusion.org/?p=fusion/misc/compiz-manager;a=blob;f=compiz-manager</a><br />
	# TODO: is there a better way to implement this ?<br />
	if os.name == &#8216;nt&#8217;: return &#8216;windows&#8217;<br />
	elif os.getenv(&#8216;KDE_FULL_SESSION&#8217;) == &#8216;true&#8217;: return &#8216;kde&#8217;<br />
	elif os.getenv(&#8216;GNOME_DESKTOP_SESSION_ID&#8217;) != &#8221;: return &#8216;gnome&#8217;<br />
	else: return &#8221;</p>
<p>cheers!<br />
_J</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: <img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=b00adc07effeba9260f3a347e673332b&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/94c85bdd7ab7acd.png" alt="Yuriy Kozlov Identicon Icon" height="35" width="35" /> Yuriy Kozlov</title>
		<link>http://www.purinchu.net/wp/2009/06/12/oh-fun/comment-page-1/#comment-6044</link>
		<dc:creator><img class="identicon" src="http://www.gravatar.com/avatar.php?gravatar_id=b00adc07effeba9260f3a347e673332b&#38;size=35&#38;default=http://www.purinchu.net/wp/wp-content/plugins/wp-identicon/identicon/94c85bdd7ab7acd.png" alt="Yuriy Kozlov Identicon Icon" height="35" width="35" /> Yuriy Kozlov</dc:creator>
		<pubDate>Sat, 13 Jun 2009 02:10:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.purinchu.net/wp/?p=459#comment-6044</guid>
		<description>Thanks! I&#039;ve always wondered how to do that.</description>
		<content:encoded><![CDATA[<p>Thanks! I&#8217;ve always wondered how to do that.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
