<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Daniel Lange's blog (Entries tagged as defaults)</title>
    <link>https://daniel-lange.com/</link>
    <description>agrep -pB IT /dev/life</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 2.6-alpha1 - http://www.s9y.org/</generator>
    <pubDate>Wed, 19 Jul 2023 23:14:21 GMT</pubDate>

    <image>
    <url>//daniel-lange.com/uploads/Avatar_Blog_144_234.png</url>
    <title>RSS: Daniel Lange's blog - agrep -pB IT /dev/life</title>
    <link>https://daniel-lange.com/</link>
    <width>144</width>
    <height>234</height>
</image>

<item>
    <title>Xfce4 opening links in Chromium despite Firefox having been set as the default browser</title>
    <link>https://daniel-lange.com/archives/184-Xfce4-opening-links-in-Chromium-despite-Firefox-having-been-set-as-the-default-browser.html</link>
            <category>Debian</category>
    
    <comments>https://daniel-lange.com/archives/184-Xfce4-opening-links-in-Chromium-despite-Firefox-having-been-set-as-the-default-browser.html#comments</comments>
    <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=184</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=184</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;Installing a laptop with the shiny new Debian Bookworm release finds a few interesting things broken that I probably had fixed in the past already on the old laptop.&lt;/p&gt;

&lt;p&gt;One, that was increadibly unintuitive to fix, was lots of applications (like xfce4-terminal or Telegram) opening links in Chromium despite Firefox being set as the preferred webbrowser &lt;em&gt;everywhere&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;update-alternatives --config x-www-browser&lt;/code&gt; was pointing at Firefox already, of course.&lt;br /&gt;
The Xfce4 preferred application from settings was Firefox, of course.&lt;br /&gt;
&lt;code&gt;xdg-mime query default text/html&lt;/code&gt; delivered &lt;code&gt;firefox-esr.desktop&lt;/code&gt;, of course.&lt;/p&gt;

&lt;p&gt;Still nearly every link opens in &amp;#9608;&amp;#9608;&amp;#9608;&amp;#9608;&amp;#9608;&amp;#9608;&amp;#9608; Chromium...&lt;/p&gt;

&lt;p&gt;As usually the answer is out there. In this case in a &lt;a href=&quot;https://bugzilla.xfce.org/show_bug.cgi?id=10314&quot;&gt;xfce4-terminal bug report from 2015&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The friendly &quot;runkharr&quot; has debugged the issue and provides the fix as well.
As usually, all very easy once you know where to look. And why to hate GTK again a bit more:&lt;/p&gt;

&lt;p&gt;The GTK function &lt;code&gt;gtk_show_uri()&lt;/code&gt; uses glib&#039;s &lt;code&gt;g_app_info_launch_default_for_uri()&lt;/code&gt; and that - of course - cannot respect the usual mimetype setting.&lt;/p&gt;

&lt;p&gt;So quoting &quot;runkharr&quot; verbatim:&lt;/p&gt;

&lt;pre&gt;
1. Create a file `exo-launch.desktop´ in your `~/.local/share/applications´ directory with something like the following content:

    [Desktop Entry]
    Name=Exo Launcher
    Type=Application
    Icon=gtk-open
    Categories=Desktop;
    Comment=A try to force &#039;xfce4-terminal&#039; to use the preferred application(s)
    GenericName=Exo Launcher
    Exec=exo-open %u
    MimeType=text/html;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;application/x-mimearchive;
    Terminal=false
    OnlyShowIn=XFCE;

2. Create (if not already existing) a local `defaults.list´ file, again in your `~/.local/share/applications´ directory. This file must start with a &quot;group header&quot; of

    [Default Applications]

3. Insert the following three lines somewhere below this `[Default Applications]´ group header [..]:

    x-scheme-handler/http=exo-launch.desktop;
    x-scheme-handler/https=exo-launch.desktop;
    x-scheme-handler/ftp=exo-launch.desktop;
&lt;/pre&gt;

&lt;p&gt;And ... links open in Firefox again. Thank you &quot;runkharr&quot;!&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Tue, 27 Jun 2023 13:55:00 +0000</pubDate>
    <guid isPermaLink="false">https://daniel-lange.com/archives/184-guid.html</guid>
    <category>browser</category>
<category>chrome</category>
<category>defaults</category>
<category>firefox</category>
<category>xfce</category>

</item>
<item>
    <title>Getting gpg to import signatures again</title>
    <link>https://daniel-lange.com/archives/178-Getting-gpg-to-import-signatures-again.html</link>
            <category>Open Source</category>
    
    <comments>https://daniel-lange.com/archives/178-Getting-gpg-to-import-signatures-again.html#comments</comments>
    <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=178</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=178</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;The GnuPG (gpg) ecosystem has been played with a bit in 2019 by adding fake signatures en masse to well known keys. The main result is that the SKS Keyserver network based on the &lt;a href=&quot;https://github.com/SKS-Keyserver/sks-keyserver&quot;&gt;OCaml software of the same name&lt;/a&gt; is basically history. A few other keyservers have come up like &lt;a href=&quot;https://gitlab.com/keys.openpgp.org/hagrid&quot;&gt;Hagrid&lt;/a&gt; (Rust) and &lt;a href=&quot;https://github.com/hockeypuck/hockeypuck&quot;&gt;Hockeypuck&lt;/a&gt; (Go) but there seems to be no clear winner yet. In case you missed it in 2019, see &lt;a href=&quot;https://daniel-lange.com/archives/159-Cleaning-a-broken-GnuPG-gpg-key.html&quot;&gt;my take on cleaning these polluted keys&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Now the &lt;a href=&quot;https://dev.gnupg.org/rG23c978640812d123eaffd4108744bdfcf48f7c93&quot;&gt;changed defaults in gpg&lt;/a&gt; to &quot;mitigate&quot; this issue are trickling down to even the conservative distributions. Debian Bullseye has &lt;code&gt;self-sigs-only&lt;/code&gt; on gpg 2.2.27 and it looks like Debian Bookworm will get gpg 2.2.40. This would add &lt;code&gt;import-clean&lt;/code&gt; but Daniel Kahn Gillmor &lt;a href=&quot;https://sources.debian.org/src/gnupg2/2.2.40-1/debian/patches/gpg-drop-import-clean-from-default-keyserver-import-optio.patch/&quot;&gt;patched it out&lt;/a&gt;. He argues correctly that this new default could delete data from good locally stored pubkeys.&lt;/p&gt;

&lt;p&gt;This all ends in you getting some random combination of &lt;code&gt;self-sigs-only&lt;/code&gt; and / or &lt;code&gt;import-clean&lt;/code&gt; depending on which Linux distribution and version you happen to use.&lt;/p&gt;

&lt;p&gt;Better be explicit. I recommend to add:&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# disable new gpg defaults&lt;/span&gt;&lt;br /&gt;keyserver-options no-self-sigs-only&lt;br /&gt;keyserver-options no-import-clean&lt;/div&gt;

&lt;p&gt;to your &lt;code&gt;~/.gnupg/gpg.conf&lt;/code&gt; to make sure you can manage signatures yourself and receive them from keyservers or local imports as intended.&lt;/p&gt;

&lt;p&gt;In case you care: See &lt;code&gt;info gnupg --index-search=keyserver-options&lt;/code&gt; for the fine documentation. Of course &lt;code&gt;apt install info&lt;/code&gt; first to be able to read info pages. &#039;cause who would still used them in 2023? Oh, wait...&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Mon, 27 Feb 2023 14:00:00 +0000</pubDate>
    <guid isPermaLink="false">https://daniel-lange.com/archives/178-guid.html</guid>
    <category>defaults</category>
<category>gnu</category>
<category>gpg</category>
<category>keyserver</category>
<category>options</category>

</item>

</channel>
</rss>
