<?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=7407&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Xfce Forums / Disable "Execute" option on .sh files?]]></title>
		<link>http://forum.xfce.org/viewtopic.php?id=7407</link>
		<description><![CDATA[The most recent posts in Disable "Execute" option on .sh files?.]]></description>
		<lastBuildDate>Sat, 29 Sep 2012 17:03:09 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Disable "Execute" option on .sh files?]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27575#p27575</link>
			<description><![CDATA[<p>Today I right click and Open With text editor.</p><p>But I think a more correct approach would be remove the execution bit and open the script using bash / perl / whatever the script is made. in terminal (&quot;bash script.sh&quot;)<br />What happens is that many times I just forget to &quot;open with&quot; and double click the script, executing it when I really want to edit. And some scripts can&#039;t be executed at any time (because they generate log, rename files, whatever).</p>]]></description>
			<author><![CDATA[dummy@example.com (mtbrandao)]]></author>
			<pubDate>Sat, 29 Sep 2012 17:03:09 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27575#p27575</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable "Execute" option on .sh files?]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27573#p27573</link>
			<description><![CDATA[<p>Hi, mtbranao.</p><p>I have about a dozen scripts, most of which get modified now and then, so I know what you mean. Sometimes I forget to right-click the script in Thunar to Open with... when I want to edit it, and the script executes.</p><p>A simple workaround for me, anyway, would be to create a Zenity list of the scripts which is called up by a simple keyboard shortcut. The command for each script in the list would be (in my case) gedit path/to/script. This way I would execute the scripts when I clicked on them in Thunar, and edit the scripts by using the Zenity trick.</p><p>For an example of a similar Zenity chooser, see</p><p><a href="http://www.freesoftwaremagazine.com/articles/writing_simple_launcher_using_zenity" rel="nofollow">http://www.freesoftwaremagazine.com/art … ing_zenity</a></p>]]></description>
			<author><![CDATA[dummy@example.com (gnome_refugee)]]></author>
			<pubDate>Sat, 29 Sep 2012 08:29:00 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27573#p27573</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable "Execute" option on .sh files?]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27572#p27572</link>
			<description><![CDATA[<p>Good point. I guess all you can do then is to right click the file in Thunar and use the &quot;open with&quot; option. But it&#039;s a bit inconvenient. Perhaps someone else has a solution.</p><p>Greg</p>]]></description>
			<author><![CDATA[dummy@example.com (greg-nz)]]></author>
			<pubDate>Sat, 29 Sep 2012 05:08:23 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27572#p27572</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable "Execute" option on .sh files?]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27570#p27570</link>
			<description><![CDATA[<p>Yes, but then I can&#039;t execute it in terminal either using by calling the script directly.</p>]]></description>
			<author><![CDATA[dummy@example.com (mtbrandao)]]></author>
			<pubDate>Sat, 29 Sep 2012 01:11:17 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27570#p27570</guid>
		</item>
		<item>
			<title><![CDATA[Re: Disable "Execute" option on .sh files?]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27569#p27569</link>
			<description><![CDATA[<p>Hi.</p><p>If you right-click on the file in Thunar and go to Properties &gt; Permissions, you should be able to uncheck the box that says &quot;All this file to run as a program.&quot; It will then open in whichever text editor you have specified.</p><p>But I imagine you&#039;ve already tried this. Does it not work? It certainly works for me with Thunar 1.4.0.</p><p>Greg</p>]]></description>
			<author><![CDATA[dummy@example.com (greg-nz)]]></author>
			<pubDate>Fri, 28 Sep 2012 20:27:03 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27569#p27569</guid>
		</item>
		<item>
			<title><![CDATA[Disable "Execute" option on .sh files?]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27303#p27303</link>
			<description><![CDATA[<p>Hi.<br />I&#039;m using Thunar 1.2.3 (Xfce 4.8)</p><p>When editing .sh files, I find very annoying that everytime I double click an .sh file, thunar executes it instead of opening with the default editor.<br />I can&#039;t find anywhere to change this.<br />Looks like shell scripts will always execute (if they have execute permission) when trying to open via Thunar.</p><p>Is there any way to change this behaviour?</p>]]></description>
			<author><![CDATA[dummy@example.com (mtbrandao)]]></author>
			<pubDate>Thu, 30 Aug 2012 12:45:28 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27303#p27303</guid>
		</item>
	</channel>
</rss>
