<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Mike Willbanks &#187; Linux</title>
	<atom:link href="http://blog.digitalstruct.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.digitalstruct.com</link>
	<description>Getting inside the mind of a php developer.</description>
	<lastBuildDate>Tue, 13 Jul 2010 13:42:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Running AIR Apps in XFCE</title>
		<link>http://blog.digitalstruct.com/2009/07/17/running-air-apps-in-xfce/</link>
		<comments>http://blog.digitalstruct.com/2009/07/17/running-air-apps-in-xfce/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 13:12:07 +0000</pubDate>
		<dc:creator>Mike Willbanks</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Adobe Air]]></category>
		<category><![CDATA[XFCE]]></category>

		<guid isPermaLink="false">http://blog.digitalstruct.com/?p=102</guid>
		<description><![CDATA[If you&#8217;re running the XFCE linux desktop environment and you&#8217;re attempting to run air applications; you&#8217;ve likely run into the beautiful message: Unknown desktop manager, only Gnome and KDE are supported. Not only is this aggravating since AIR is meant to be cross platform but even more so that it can&#8217;t simply handle booting the [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re running the XFCE linux desktop environment and you&#8217;re attempting to run air applications; you&#8217;ve likely run into the beautiful message:</p>
<blockquote><p>Unknown desktop manager, only Gnome and KDE are supported.</p></blockquote>
<p>Not only is this aggravating since AIR is meant to be cross platform but even more so that it can&#8217;t simply handle booting the air application or using specific functionality.</p>
<p>If you are looking for a workaround, I do have one.  It is not the most elegant solution in the world and will require you to save all of your applications into the same area, for instance, my air applications are in /opt/air.   Not in order to run most of these applications ensure that you have keyring installed.  The main brunt of the workaround is to simply: export GNOME_DESKTOP_SESSION_ID=&#8221;xfce&#8221;.</p>
<p>Now, while you can run the export in the terminal, you will need to likely run it every time that you boot up an air application.  My change was to create a bootstrap file for running the air applications.  If you pass in the air applications name as it is in the file system, it will handle running the app.  Now the workaround:</p>
<p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-z</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
    <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Please specify an application.&quot;</span>
    <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">0</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">GNOME_DESKTOP_SESSION_ID</span>=<span style="color: #ff0000;">&quot;xfce&quot;</span>
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>air<span style="color: #000000; font-weight: bold;">/</span>$<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>$<span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&amp;</span></pre></td></tr></table></div>

</p>
<p>As you can tell this is a quick fix hack and I really did not put a lot of rigger into the handling of unknown files, handling spaces etc.  You can work around having spaces by using a wildcard character in place of the space.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.digitalstruct.com/2009/07/17/running-air-apps-in-xfce/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
