Comment

Comment by miduil

You can skip inotify tools altogether and do use systemd like this to trigger `rm -rf`:

    `~/.config/systemd/user/remove-thunderbird-dir.path`

   [Unit]
   Description=Watch for unwanted ~/thunderbird directory
   

   [Path]
   PathExists=%h/thunderbird
   Unit=remove-thunderbird-dir.service
   
   [Install]
   WantedBy=default.target
parent miduil 4 months ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton