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

<?xml-stylesheet type="text/xsl" href="/templates/2k11/rss.xsl" media="screen" ?>
<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 xfce)</title>
    <link>https://daniel-lange.com/</link>
    <description>agrep -pB IT /dev/life</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 2.6.0 - 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>Happy tenth birthday, dear Thunar bug</title>
    <link>https://daniel-lange.com/archives/177-Happy-tenth-birthday,-dear-Thunar-bug.html</link>
            <category>Fun</category>
            <category>Open Source</category>
    
    <comments>https://daniel-lange.com/archives/177-Happy-tenth-birthday,-dear-Thunar-bug.html#comments</comments>
    <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=177</wfw:comment>

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

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;Thunar, the Xfce4 file manager, has a bug that it underflows the time remaining for a file copy since ten years now (&lt;a href=&quot;https://bugzilla.xfce.org/show_bug.cgi?id=9743&quot; title=&quot;Archived bugzilla bug entry from 11.01.2013&quot;&gt;bugzilla&lt;/a&gt;, &lt;a href=&quot;https://gitlab.xfce.org/xfce/thunar/-/issues/46&quot; title=&quot;Gitlab migrated issue&quot;&gt;gitlab&lt;/a&gt;). Happy birthday!&lt;/p&gt;

&lt;p&gt;&lt;!-- s9ymdb:697 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;460&quot; height=&quot;127&quot;  src=&quot;https://daniel-lange.com/uploads/entries/230109_Thunar_remaining_time_calc_underflow.png&quot; title=&quot;All the best for the next 10 years!&quot; alt=&quot;&quot;&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Update from 01.06.2023:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Good news, Debian Bookworm will also be released with this long term friend still present. Phew!&lt;/p&gt;

&lt;p&gt;&lt;!-- s9ymdb:707 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;460&quot; height=&quot;135&quot;  src=&quot;https://daniel-lange.com/uploads/entries/230601_Thunar_remaining_time_calc_underflow_2.png&quot;  alt=&quot;&quot;&gt;&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Tue, 10 Jan 2023 23:00:00 +0000</pubDate>
    <guid isPermaLink="false">https://daniel-lange.com/archives/177-guid.html</guid>
    <category>bug</category>
<category>debian</category>
<category>fail</category>
<category>thunar</category>
<category>time</category>
<category>underflow</category>
<category>updated</category>
<category>xfce</category>

</item>
<item>
    <title>Xfce 4.12 not suspending on laptop-lid close</title>
    <link>https://daniel-lange.com/archives/154-Xfce-4.12-not-suspending-on-laptop-lid-close.html</link>
            <category>Linux</category>
    
    <comments>https://daniel-lange.com/archives/154-Xfce-4.12-not-suspending-on-laptop-lid-close.html#comments</comments>
    <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=154</wfw:comment>

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

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;Xfce 4.12 as default in Ubuntu/Xubuntu 18.04 LTS did not suspend a laptop after closing the lid. In fact running
&lt;code&gt;xfce4-power-manager --quit ; xfce4-power-manager --no-daemon --debug&lt;/code&gt; showed that xfce4 wasn&#039;t seeing a laptop lid close event at all.&lt;/p&gt;

&lt;p&gt;To the contrary &lt;code&gt;acpi_listen&lt;/code&gt; nicely finds &lt;code&gt;button/lid LID close&lt;/code&gt; and &lt;code&gt;button/lid LID open&lt;/code&gt; events when folding the screen and opening it up again.&lt;/p&gt;

&lt;p&gt;As so often the wonderful docs / community of Arch Linux to the rescue. This &lt;a href=&quot;https://bbs.archlinux.org/viewtopic.php?id=206840&quot;&gt;forum thread&lt;/a&gt; from 2015 received the correct answer in 2017:&lt;/p&gt;

&lt;p&gt;Xfce4 basically recognizes systemd and thus disables its built-in power-management options for handling these &quot;button events&quot; (but doesn&#039;t tell you so in the config UI for power-manager). Systemd is configured to handle these events by default (&lt;code&gt;/etc/systemd/logind.conf&lt;/code&gt; has &lt;code&gt;HandleLidSwitch=suspend&lt;/code&gt; but for unknown reasons decides not to honor that).&lt;/p&gt;

&lt;p&gt;So best is to teach Xfce4 to handle the events again as in pre-systemd times:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/logind-handle-lid-switch -s false&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Now the UI options will work again as intended and the laptop suspends on lid close and resumes on lid open.&lt;/p&gt;

&lt;h3&gt;Update:&lt;/h3&gt;

&lt;p&gt;07.01.19: Changed XFCE -&gt; Xfce as per Corsac&#039;s suggestion in the comments below. Thank you!&lt;/p&gt;

&lt;p&gt;Background info:&lt;/p&gt;

&lt;blockquote&gt;
The name &quot;XFCE&quot; was originally an acronym for &quot;XForms Common Environment&quot;, but since that time it has been rewritten twice and no longer uses the XForms toolkit. The name survived, but it is no longer capitalized as &quot;XFCE&quot;, but rather as &quot;Xfce&quot;. The developers&#039; current stance is that the initialism no longer stands for anything specific. After noting this, the FAQ on the Xfce Wiki comments &quot;(suggestion: X Freakin&#039; Cool Environment)&quot;.
&lt;/blockquote&gt;

&lt;p&gt;(quoted from &lt;a href=&quot;https://en.wikipedia.org/wiki/Xfce#History&quot;&gt;Wikipedia&#039;s Xfce article&lt;/a&gt; also found in the &lt;a href=&quot;https://docs.xfce.org/faq&quot;&gt;Xfce docs FAQ&lt;/a&gt;).&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Sat, 05 Jan 2019 15:15:00 +0000</pubDate>
    <guid isPermaLink="false">https://daniel-lange.com/archives/154-guid.html</guid>
    <category>config</category>
<category>hibernate</category>
<category>suspend</category>
<category>systemd</category>
<category>ubuntu</category>
<category>updated</category>
<category>xfce</category>

</item>
<item>
    <title>Firefox asking to be made the default browser again and again</title>
    <link>https://daniel-lange.com/archives/148-Firefox-asking-to-be-made-the-default-browser-again-and-again.html</link>
            <category>Linux</category>
    
    <comments>https://daniel-lange.com/archives/148-Firefox-asking-to-be-made-the-default-browser-again-and-again.html#comments</comments>
    <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=148</wfw:comment>

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

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;Firefox on Linux can develop the habit to (rather randomly) ask again and again to be made the default browser. E.g. when started from Thunderbird by clicking a link it asks but when starting from a shell all is fine.&lt;/p&gt;

&lt;p&gt;The reason to this is often two (or more) &lt;code&gt;.desktop&lt;/code&gt; entries competing with each other.&lt;/p&gt;

&lt;p&gt;So, walkthrough: (&lt;a href=&quot;#label_10&quot;&gt;GOTO 10&lt;/a&gt; in case you are sure to have all the basics right)&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;update-alternatives &lt;span style=&quot;color: #660033;&quot;&gt;--display&lt;/span&gt; x-www-browser&lt;br /&gt;update-alternatives &lt;span style=&quot;color: #660033;&quot;&gt;--display&lt;/span&gt; gnome-www-browser&lt;/div&gt;

&lt;p&gt;should both show firefox for you. If not&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;update-alternatives &lt;span style=&quot;color: #660033;&quot;&gt;--config&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;&lt;/span&gt;entry&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/div&gt;

&lt;p&gt;the entry to fix the preference on &lt;code&gt;/usr/bin/firefox&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Check (where available)&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;exo-preferred-applications&lt;/div&gt;

&lt;p&gt;that the &quot;Internet Browser&quot; is &quot;Firefox&quot;.&lt;/p&gt;

&lt;p&gt;Check (where available)&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;xfce4-mime-settings&lt;/div&gt;

&lt;p&gt;that anything containing &quot;html&quot; points to Firefox (or is left at a non-user set default).&lt;/p&gt;

&lt;p&gt;Check (where available)&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;xdg-settings get default-web-browser&lt;/div&gt;

&lt;p&gt;that you get &lt;code&gt;firefox.desktop&lt;/code&gt;. If not run&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;xdg-settings check default-web-browser firefox.desktop&lt;/div&gt;

&lt;p&gt;If you are running Gnome, check&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;xdg-settings get default-url-scheme-handler http&lt;/div&gt;

&lt;p&gt;and the same for &lt;code&gt;https&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a name=&quot;label_10&quot;&gt;LABEL 10&lt;/a&gt;:&lt;/p&gt;

&lt;p&gt;Run&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;sensible-editor ~&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;.config&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;mimeapps.list&lt;/div&gt;

&lt;p&gt;and remove all entries that contain something like &lt;code&gt;userapp-Firefox-&amp;lt;random&amp;gt;.desktop&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Run&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;find&lt;/span&gt; ~&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;.local&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;share&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;applications &lt;span style=&quot;color: #660033;&quot;&gt;-iname&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;userapp-firefox*.desktop&amp;quot;&lt;/span&gt;&lt;/div&gt;

&lt;p&gt;and delete these files or move them away.&lt;/p&gt;

&lt;p&gt;Done.&lt;/p&gt;

&lt;p&gt;Once you have it working again consider &lt;em&gt;disabling&lt;/em&gt; the option for  Firefox to check whether it is the default browser. Because it will otherwise create those pesky &lt;code&gt;userapp-Firefox-&amp;lt;random&amp;gt;.desktop&lt;/code&gt; files again.&lt;/p&gt;

&lt;p&gt;Configuring Linux is easy, innit?&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Sat, 03 Nov 2018 08:55:00 +0000</pubDate>
    <guid isPermaLink="false">https://daniel-lange.com/archives/148-guid.html</guid>
    <category>bug</category>
<category>chrome</category>
<category>config</category>
<category>debian</category>
<category>firefox</category>
<category>gnome</category>
<category>thunderbird</category>
<category>ubuntu</category>
<category>xfce</category>

</item>
<item>
    <title>Fix Umlauts in the XFCE Terminal</title>
    <link>https://daniel-lange.com/archives/44-Fix-Umlauts-in-the-XFCE-Terminal.html</link>
            <category>IT</category>
    
    <comments>https://daniel-lange.com/archives/44-Fix-Umlauts-in-the-XFCE-Terminal.html#comments</comments>
    <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=44</wfw:comment>

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

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;The XFCE Terminal has the weird issue of sometimes showing question marks (?) instead of German Umlauts (äöüÄÖÜ) although they work fine in any other stock XFCE application (e.g. the default editor &quot;mousepad&quot;).&lt;/p&gt;

&lt;p&gt;The solution to this can be found on the &lt;a href=&quot;http://forum.xfce.org/index.php?topic=3302.0&quot; title=&quot;XFCE Forum thread on Umlauts in Terminal&quot;&gt;XFCE Forums&lt;/a&gt; but it took me quite some time to find it. It was difficult to find a suitable search query to dig out that page. Google turns up a lot of irrelevant stuff on &quot;XFCE Terminal question marks&quot;...&lt;/p&gt;

&lt;div class=&quot;serendipity_imageComment_center&quot; style=&quot;width: 526px&quot;&gt;&lt;div class=&quot;serendipity_imageComment_img&quot;&gt;&lt;!-- s9ymdb:525 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;526&quot; height=&quot;283&quot;  src=&quot;https://daniel-lange.com/uploads/entries/090430_XFCE_terminal.png&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;&lt;div class=&quot;serendipity_imageComment_txt&quot;&gt;XFCE Editor Umlauts with and without LANG variable set&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The problem with Umlauts (and other 8bit ASCII characters) showing as question marks arises if the user has no LANG variable set.&lt;/p&gt;

&lt;p&gt;A simple&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;export&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;LANG&lt;/span&gt;=en_US&lt;/div&gt;

&lt;p&gt;resolves the issue. Put that into &lt;em&gt;~/.bashrc&lt;/em&gt; or any other place suitable in your distribution.&lt;/p&gt;

&lt;p&gt;Gentoo users may want to&lt;/p&gt;

&lt;div class=&quot;bash geshi&quot; style=&quot;text-align: left&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;su&lt;/span&gt; &amp;#160;&lt;span style=&quot;color: #666666; font-style: italic;&quot;&gt;# become root&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;LANG=en_US&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;etc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;env.d&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;02locale&lt;br /&gt;env-update&lt;br /&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;exit&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;source&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;etc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;profile&lt;/div&gt;

&lt;p&gt;to set the LANG variable system-wide.&lt;/p&gt;

&lt;p&gt;So keywords, dear Google: &lt;em&gt;Umlaute, deutsch, Fragezeichen, kaputt, falsch, broken, display, zeigt, charset, Zeichensatz&lt;/em&gt; &lt;img src=&quot;https://daniel-lange.com/plugins/serendipity_event_emoticate/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; class=&quot;emoticon&quot; /&gt;&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Fri, 01 May 2009 21:20:00 +0000</pubDate>
    <guid isPermaLink="false">https://daniel-lange.com/archives/44-guid.html</guid>
    <category>bug</category>
<category>charset</category>
<category>gentoo</category>
<category>terminal</category>
<category>umlauts</category>
<category>xfce</category>

</item>

</channel>
</rss>
