Skip to content
Snippets Groups Projects
Commit a7355a59 authored by Andre Miranda's avatar Andre Miranda
Browse files

Handle cases when file watch is not supported (Bug #13881)

When a remote folder is accessed, this error is printed:
(thunar:9378): thunar-CRITICAL **: thunar_file_watch: assertion '...

Upon leaving that folder, Thunar crashes:
ERROR:thunar-file.c:3929:thunar_file_unwatch: code should not be reached

I found out that a call to g_file_monitor in thunar_file_watch has no
error handling, and in the case of remote folders this error happens:
Failed to create file monitor: Operation not supported by backend

So when ThunarFolder is finalized and calls thunar_file_unwatch, its
file_watch will be NULL and _thunar_assert_not_reached kills Thunar.
parent 7cca9b27
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment