<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=7504&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Using Windows URL files on Linux machines?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7504</link>
		<description><![CDATA[The most recent posts in Using Windows URL files on Linux machines?.]]></description>
		<lastBuildDate>Wed, 05 Nov 2025 14:15:51 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Using Windows URL files on Linux machines?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59141#p59141</link>
			<description><![CDATA[<p>@Gnostic</p><p>The set default application is probably what you want. How you configure it in file manager will vary depending on the file manager.</p><p>With Thunar (XFCE) </p><ul><li><p>Give the script exec permission.</p></li></ul><ul><li><p>Right click on a file that is of the type you want to make the default, and choose Open With &gt; Set Default Application</p></li></ul><ul><li><p>Enter the path to the script in the custom command entry&#160; &#160;( or use the browse button to find the script)</p></li></ul><ul><li><p>Ensure the &quot;Use as default for this kind of file&quot; is checked and then click open.</p></li></ul><ul><li><p>NOTE :&#160; &#160;adding the %f after the path is not needed.</p></li></ul>]]></description>
			<author><![CDATA[dummy@example.com (JWM-Kit)]]></author>
			<pubDate>Wed, 05 Nov 2025 14:15:51 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59141#p59141</guid>
		</item>
		<item>
			<title><![CDATA[Re: Using Windows URL files on Linux machines?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59038#p59038</link>
			<description><![CDATA[<div class="codebox"><pre><code>man xdg-open</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (stargate-sg1-cheyenne-mtn)]]></author>
			<pubDate>Tue, 04 Nov 2025 05:56:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59038#p59038</guid>
		</item>
		<item>
			<title><![CDATA[Re: Using Windows URL files on Linux machines?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59029#p59029</link>
			<description><![CDATA[<p>@jwm-kit<br />Thanks, and please excuse my ignorance, how can I use that with &quot;Open with&quot; ?<br />Would it be &quot;Open with other application&quot; or &quot;Set default application&quot; ?<br />Or something else?</p>]]></description>
			<author><![CDATA[dummy@example.com (Gnostic)]]></author>
			<pubDate>Tue, 04 Nov 2025 00:10:35 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59029#p59029</guid>
		</item>
		<item>
			<title><![CDATA[Re: Using Windows URL files on Linux machines?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=58925#p58925</link>
			<description><![CDATA[<p>wouldn&#039;t something like this be much simpler</p><div class="codebox"><pre><code>#!/bin/sh
xdg-open $(grep -oP http.+ &quot;${1}&quot;)</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (JWM-Kit)]]></author>
			<pubDate>Sat, 01 Nov 2025 20:48:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=58925#p58925</guid>
		</item>
		<item>
			<title><![CDATA[Using Windows URL files on Linux machines?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=58924#p58924</link>
			<description><![CDATA[<p>Folks on my local network like to bookmark websites by dragging &amp; dropping from the browser address bar into their file manager.</p><p>On Windows machines that creates an Internet Shortcut URL file.<br />For example, for Pi-Hole it will contain this:</p><div class="quotebox"><blockquote><div><p>[InternetShortcut]<br />URL=https://pi-hole.net/</p></div></blockquote></div><p>How to make that useful on a Linux machine?</p><p>I&#039;ve written a tiny bit of Python that seems to work.</p><div class="quotebox"><blockquote><div><p># UseDesktopLink.py<br />import sys<br />import webbrowser<br />script, filename = sys.argv<br />file_object = open(filename,&#039;r&#039;)<br />for line in file_object:<br />&#160; &#160; #print(line)<br />&#160; &#160; if line[0:4]==&quot;URL=&quot;:<br />&#160; &#160; &#160; &#160; url=line[4:]<br />&#160; &#160; &#160; &#160; #print(&quot;url=&quot;,url)<br />&#160; &#160; &#160; &#160; # just in case the line has msdos cr-lf, remove that<br />&#160; &#160; &#160; &#160; url=url.replace(&#039;\x0d\x0a&#039;, &#039;&#039;)<br />&#160; &#160; &#160; &#160; # or just Linux LF<br />&#160; &#160; &#160; &#160; url=url.replace(&#039;\x0a&#039;, &#039;&#039;)<br />&#160; &#160; &#160; &#160; webbrowser.open_new(url)<br />file_object.close()</p></div></blockquote></div><p>I intended it to work with a right-click on the URL file and &quot;Open with ..&quot;, &quot;Set default application&quot; then a custom command. </p><div class="quotebox"><blockquote><div><p>python UseDesktopLink.py %f</p></div></blockquote></div><p>But it&#039;s not working. <br />What might I have forgotten to do?</p>]]></description>
			<author><![CDATA[dummy@example.com (Gnostic)]]></author>
			<pubDate>Sat, 01 Nov 2025 20:16:11 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=58924#p58924</guid>
		</item>
	</channel>
</rss>
