<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.xfce.org/extern.php?action=feed&amp;tid=6968&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Xfce Forums / [Solved] exo-open in a terminal script - program closes with the terminal]]></title>
		<link>http://forum.xfce.org/viewtopic.php?id=6968</link>
		<description><![CDATA[The most recent posts in [Solved] exo-open in a terminal script - program closes with the terminal.]]></description>
		<lastBuildDate>Fri, 06 Apr 2012 13:26:08 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [Solved] exo-open in a terminal script - program closes with the terminal]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25670#p25670</link>
			<description><![CDATA[<div class="quotebox"><cite>ToZ wrote:</cite><blockquote><div><p>Try setsid (setsid exo-open &quot;$filename&quot;):</p></div></blockquote></div><p>Sir you are a gentleman and a scholar! Many thanks to you :-)</p>]]></description>
			<author><![CDATA[dummy@example.com (oodavid)]]></author>
			<pubDate>Fri, 06 Apr 2012 13:26:08 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25670#p25670</guid>
		</item>
		<item>
			<title><![CDATA[Re: [Solved] exo-open in a terminal script - program closes with the terminal]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25669#p25669</link>
			<description><![CDATA[<p>Try setsid (setsid exo-open &quot;$filename&quot;):</p><div class="codebox"><pre><code>#!/bin/bash

# CD to the home folder (not sure if this is needed, no harm either way)
cd ~/

# Request the filepath
echo -e &quot;\e[1;31mEnter a file or directory:\e[00m&quot;
read -e -i &quot;~/&quot; filename

# Convert ~/ to /home/username/
filename=`eval &quot;echo $filename&quot;`
echo -e &quot;opening\e[1;32m&quot; $filename &quot;\e[00m&quot;

# Open the file
setsid exo-open &quot;$filename&quot;

#echo &quot;press enter to exit&quot;
#read enter</code></pre></div><p>...you can also remove the last two lines to have the terminal window close automatically.</p>]]></description>
			<author><![CDATA[dummy@example.com (ToZ)]]></author>
			<pubDate>Fri, 06 Apr 2012 12:55:45 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25669#p25669</guid>
		</item>
		<item>
			<title><![CDATA[[Solved] exo-open in a terminal script - program closes with the terminal]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=25662#p25662</link>
			<description><![CDATA[<p>I&#039;ve written a simple bash script that prompts for a file or directory path and opens it with exo-open, I&#039;ve then assigned the script to a keyboard shortcut so that I can CTRL+SHIFT+ALT+O to open anything at anytime via a terminal prompt:</p><p><a href="http://twitpic.com/969uuc/full" rel="nofollow"><span class="postimg"><img src="http://twitpic.com/show/thumb/969uuc.png" alt="969uuc.png" /></span></a></p><p>And the script:</p><div class="codebox"><pre><code>#!/bin/bash

# CD to the home folder (not sure if this is needed, no harm either way)
cd ~/

# Request the filepath
echo -e &quot;\e[1;31mEnter a file or directory:\e[00m&quot;
read -e -i &quot;~/&quot; filename

# Convert ~/ to /home/username/
filename=`eval &quot;echo $filename&quot;`
echo -e &quot;opening\e[1;32m&quot; $filename &quot;\e[00m&quot;

# Open the file
exo-open &quot;$filename&quot;

echo &quot;press enter to exit&quot;
read enter</code></pre></div><p>My problem is that the spawned program is linked to the terminal, when the terminal closes it takes the program with it - as a simple workaround I have another user prompt at the end to stop the terminal from closing; does anyone know how I would be able to unlink the fate exo-open from the terminal?</p>]]></description>
			<author><![CDATA[dummy@example.com (oodavid)]]></author>
			<pubDate>Fri, 06 Apr 2012 10:37:50 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=25662#p25662</guid>
		</item>
	</channel>
</rss>
