Thunderbird Littering My Home

speckx1 pts0 comments

thefoggiest.dev

Thefoggiest.dev

“Why yes, I do have the foggiest”

🙋 About

RSS-feed

Archives

2026

2025

2024

2023

2022

2021

2020

2019

2018

2013

2012

2011

2010

2009

2008

2007

2006

2005

Categories

Tags

Elsewhere

Code

Armada E500

Mastodon

Slash pages

/ai

/blank

/blogroll

/colophon

/defaults

/hats

/hello

/now

/privacy

/retro

/slashpages

/stories

/where

Webrings

IndieWeb

Retronaut

Fediring

🇺🇦🇵🇸

Thunderbird littering my home

June 04, 2026 | 1 minute read | 289 words | 234.06 kB

I’ve recently rediscovered Thunderbird, but it has developed a bug, apparently because of recent XDG changes which added a new type of projects directory. The bug means that any time I start Thunderbird, it creates a directory ~/thunderbird.

I suppose I should be glad it’s in lowercase

The directory is useless. It remains empty, and Thunderbird already uses an old-style ~/.thunderbird for configuration and data, instead of respectively under the standard ~/.config/ and ~/.local/share/.

I don’t have the time to build the knowledge to fix this bug. I am, however, on record for finding applications that make directories in my home, intended or not, impolite and inconsiderate, so this will not stand.

In the rest of this post I will use the fish(1) shell as well as systemd(1), so if you use different tools, adjust<br>as needed.

~/.local/bin/watch-thunderbird-dir.fish:

#!/usr/bin/fish<br>inotifywait -m -e create ~/. | while read FILE<br>echo $FILE<br>if test -d 'thunderbird';<br>rmdir 'thunderbird';<br>end<br>end

The above will watch my home directory. Whenever a directory called “thunderbird“ is created, it is immediately removed. But I don’t want to run it by hand and have an open terminal all the time, so I create a systemd user service:

~/.config/systemd/user/watch-thunderbird-dir.service:

[Unit]<br>Description=Watch and remove thunderbird directory<br>After=network.target

[Service]<br>Type=simple<br>ExecStart=/home/me/.local/bin/watch-thunderbird-dir.fish<br>Restart=always<br>RestartSec=2

[Install]<br>WantedBy=default.target

Systemd user services need absolute paths, so adjust “me” with your username and start and enable the service:

$ chmod +x ~/.local/bin/watch-thunderbird-dir.fish<br>$ systemctl --user daemon-reload<br>$ systemctl --user enable --now watch-thunderbird-dir.service

If we don’t forget to remove all this once Thunderbird have found time to solve the actual bug, the hack described here will do nicely.

Categories:

how-to

Tags:

thunderbird

inotify

fish

systemd

You can respond to this post by sending an email to hello at this domain, or via Mastodon.

CC-BY-SA 4.0 2005 - 2026 Thefoggiest.dev

thunderbird watch directory fish home systemd

Related Articles