To avoid this error, we need to increase the inotify watcher limit.
The way to do this is different on Arch based distributions than other Linux distributions.
Instructions for Arch Linux/Manjaro
Check for an already existing inotify config file (recent versions of Manjaro include one)
a) If no output
echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/40-max_user_watches.conf && sudo sysctl --system
b) If the command outputs a file
(in the rare case where it outputs multiple files, continue using the last one in the list)
# replace `/etc/sysctl.d/50-max_user_watches.conf` with the file returned from the previous `ls` command echo fs.inotify.max_user_watches=524288 | sudo tee /etc/sysctl.d/50-max_user_watches.conf && sudo sysctl --system
Check it's working
Oh cool - also using Plasma!
Yeah the reason this is so painful is that Manjaro has a file
50-max_user_watches.confpreconfigured, but Arch doesn't.
The original instuctions for this for Arch was to create a
40-max_user_watches.confbut the existing config overrides it (50 > 40) on Manjaro.
Ultimately finding the existing definition in
50-max_user_watches.confoughta do the trick