<?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>Drop By! &#187; gnome</title>
	<atom:link href="http://www.rekk.de/bloggy/category/gnome/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rekk.de/bloggy</link>
	<description>Dropping Brain Crumbs ...</description>
	<lastBuildDate>Wed, 09 Jun 2010 16:59:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Gnome Application Launcher &#8211; Run Application in Certain Directory</title>
		<link>http://www.rekk.de/bloggy/2009/gnome-application-launcher-run-application-in-certain-directory/</link>
		<comments>http://www.rekk.de/bloggy/2009/gnome-application-launcher-run-application-in-certain-directory/#comments</comments>
		<pubDate>Tue, 12 May 2009 09:20:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.rekk.de/bloggy/?p=136</guid>
		<description><![CDATA[This would be easy in kde, but in gnome some extra steps are needed. I changed to gnome just recently being impressed by the clarity and simplicity of the user interface. Being used to the &#8220;kde way&#8221; I needed some time to figure that out. This is an example for kdissert: Create a wrapper script [...]]]></description>
			<content:encoded><![CDATA[<p>This would be easy in kde, but in gnome some extra steps are needed. I changed to gnome just recently being impressed by the clarity and simplicity of the user interface. Being used to the &#8220;kde way&#8221; I needed some time to figure that out.</p>
<p>This is an example for kdissert:</p>
<p>Create a wrapper script for example kdissert.sh in ~/bin/launch and make it executable</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash                                                                                                     </span>
<span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>Known
<span style="color: #c20cb9; font-weight: bold;">nohup</span> kdissert <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&amp;</span>
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></div></div>

<p>Then use the panel menu to create a Custom Application Launcher : Add to panel -> Custom Application Launcher -> Choose Type: Application, Command: /home/yourusername/bin/launch/kdissert.sh </p>
<p>Another way is to use shell directly. But watch out &#8211; you will need to source your .bashrc if needed:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>Desktop Entry<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #007800;">Version</span>=<span style="color: #000000;">1.0</span>
<span style="color: #007800;">Encoding</span>=UTF-<span style="color: #000000;">8</span>
<span style="color: #007800;">Name</span>=netbeans with some environment settings
<span style="color: #007800;">Exec</span>=<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span> <span style="color: #660033;">-c</span>  <span style="color: #ff0000;">'. ~/.bashrc; ~/workarea/nb_run.sh'</span>
<span style="color: #666666; font-style: italic;"># to run it in a terminal:</span>
<span style="color: #666666; font-style: italic;"># Exec=gnome-terminal --command &quot;/bin/bash -c  '. ~/.bashrc; ~/workarea/nb_run.sh' &quot;</span>
<span style="color: #007800;">Icon</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>kostja<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>netbeans-6.5rc2<span style="color: #000000; font-weight: bold;">/</span>nb6.5<span style="color: #000000; font-weight: bold;">/</span>netbeans.png
<span style="color: #007800;">Categories</span>=Development;Java;IDE
<span style="color: #007800;">StartupNotify</span>=<span style="color: #c20cb9; font-weight: bold;">true</span>
<span style="color: #007800;">Type</span>=Application</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.rekk.de/bloggy/2009/gnome-application-launcher-run-application-in-certain-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

