<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="text-align:left; direction:ltr;" bgcolor="#ffffff" text="#2e3436" link="#737373" vlink="#2e3436">
<div>On Mon, 2020-08-17 at 15:53 +0200, Volker Wysk wrote:</div>
<blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<pre>Am Montag, den 17.08.2020, 22:52 +1000 schrieb Karl Auer:</pre>
<blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<pre>I want to open specific browsers (or more generally, pass specific</pre>
<pre>URLS</pre>
<pre>to specific programs) within the Ubuntu desktop.</pre>
<pre><br></pre>
<pre>For example, if I receive an email with a link in it, and click on</pre>
<pre>that</pre>
<pre>link, I want to pass that link to a specific program.</pre>
<pre><br></pre>
<pre>I've spent quite bit of time googling around mime types and so on,</pre>
<pre>but</pre>
<pre>everything I find is about opening files, not links. I've also looked</pre>
<pre>at xdg-open, xdg-settings etc, but I cannot figure out what xdg-open</pre>
<pre>is</pre>
<pre>looking at when it decides to run Firefox, either! It's allegedly</pre>
<pre>mimeapps.list, but it is definitely not using the one in my home</pre>
<pre>directoy and the others seem to belong to various snaps.</pre>
<pre><br></pre>
<pre>Another way to look it this would be to say I want to substitute my</pre>
<pre>own</pre>
<pre>program for Firefox as far as what is used to open links.</pre>
</blockquote>
<pre><br></pre>
<pre>Evolution uses a .desktop file for the browser, which it uses for</pre>
<pre>opening a link in a mail. This is probably Firefox or Chrome. For</pre>
<pre>Firefox, it's the firefox.desktop file which is consulted. </pre>
<pre><br></pre>
<pre>This can (i believe) be chosen in the "Vorgabeanwendungen" ("default</pre>
<pre>applications"?) in the system settings. In this file, it is specified</pre>
<pre>how the default browser should be opened. It is located in</pre>
<pre>/usr/share/applications and possibly in .local/share/applications. The</pre>
<pre>second one takes precedence over the first one, so you can replace</pre>
<pre>system wide ones with private ones.</pre>
<pre><br></pre>
<pre>The firefox.desktop file has, among other things, this entry in about</pre>
<pre>the middle: </pre>
<pre><br></pre>
<pre>Exec=firefox %u</pre>
<pre><br></pre>
<pre>Here the "%u" should be the URL. </pre>
<pre><br></pre>
<pre>I don't know if you can configure evolution, such that it uses a</pre>
<pre>program different from the default browser.</pre>
</blockquote>
<div><br>
</div>
<div>From what I've seen, clicking on a link in Evolution opens Chrome (in my case) and then Chrome decides somehow to use xdg-open to open the link/file with another app. For example, I can click on a link to a Zoom meeting and Chrome pops up saying do I want
to open it with xdg-open. I don't know how it figures that out.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Tony.</div>
<div><span>
<pre>-- <br></pre>
<div>
<div><font size="2"><font color="#3366ff"><b>Tony Arnold</b> MBCS, CITP | Senior IT Security Analyst | Directorate of IT Services | Office 1, Kilburn Building | The University of Manchester | Manchester M13 9PL |
</font><font color="#ff0000">T:</font><font color="#3366ff"> +44 161 275 6093 | </font>
<font color="#ff0000">M:</font><font color="#3366ff"> +44 773 330 0039</font></font></div>
</div>
</span></div>
</body>
</html>