Thunar stops updating/refreshing newly created/deleted files

Bug #2051026 reported by ^rooker
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
thunar (Ubuntu)
New
Undecided
Unassigned

Bug Description

When I created or deleted a file in the shell/commandline, then Thunar would not update it's view - unless I pressed F5 to refresh the folder.

This is not its default behavior.

I've found the cause - and a solution:
Nextcloud gave a warning that inotify watches were exhausted, pointing to their FAQ:

https://docs.nextcloud.com/desktop/3.4/faq.html#there-was-a-warning-about-changes-in-synchronized-folders-not-being-tracked-reliably

To solve both's (Nextcloud and Thunar) behavior back to normal, increase the value of `fs.inotify.max_user_watches`in `/etc/sysctl.conf`, as described in the FAQ article.

The value Nextcloud suggests is 524288 - so I assume this amount to be safe.

Adding the following setting to `/etc/sysctl.conf`, fixed it for me:

`fs.inotify.max_user_watches = 524288`

Hope it helps if anyone else runs into this :)

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: thunar 1.8.14-0ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-126.142-generic 5.4.203
Uname: Linux 5.4.0-126-generic x86_64
ApportVersion: 2.20.11-0ubuntu27.24
Architecture: amd64
CasperMD5CheckResult: skip
CurrentDesktop: XFCE
Date: Tue Jan 23 20:38:34 2024
InstallationDate: Installed on 2021-01-16 (1101 days ago)
InstallationMedia: Xubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
SourcePackage: thunar
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
^rooker (rooker) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.