title: open .url windows file in a browser on kde plasma 5 gracefully without having terminal closure kill browser
body: <p>We migrated our media PC from Windows 7 to Kubuntu Linux 20.10.</p>
  <p>There are many text files saved with a .url extension that have a line
  URL=https://website.com</p>
  <p>I would like to be able to open them the same ways I would any other document.  Lets say, double click, or right click and say open, or open with _browser_name<br />
  (I know I could write another wrapper script for /usr/bin/firefox and all the other browsers, but I am ok with telling it to open in my shellscript)</p>
  <p>This basically works, but If I close the konsole window, the firefox window closes. (unless there is another firefox open before, and then it works fine)</p>
  <p>I tried the ampersand, i tried disown.. I've corrupted my firefox profile a few times because of how it gets clobbered when it closes ungracefully.</p>
  <p>What can I do?</p>
  <p>I need to use Dolphin file manager.  I want this script to be able to handle errors, which is why I have a few extra arguments to commands than I saw in the examples.</p>
  <p>If I include the ampersand at the end, the browser closes immediately.</p>
  <pre><code>#!/bin/bash
  #bash -c &quot;cat $1 | grep URL | cut -d'=' -f2 | xargs firefox &amp;&quot;
  echo OpenWinURL in firefox
  echo Closing this window will close your firefox.
  echo Try opening firefox before opening a OpenWinURL
  #echo Copyright 2021 Aaron Peterson GPL V2 or later
  #echo  The ampersand doesn't work after firefox
  #echo &quot;$1&quot;
  #
  jobs -l
  cat &quot;$1&quot; | grep  -m 1 URL= | cut -d'=' -f2- | xargs -0 -i firefox {} #&amp;
  #jobs -l
  disown -h -a
  #jobs -l
  #read  -n 1 -p &quot;Input Selection:&quot; mainmenuinput
  
  #echo testing
  #wait 1000
  
  #
  #| head -n 1
  #| cut -d'=' -f2 | xargs firefox &amp;
  </code></pre>