diff options
author | Andre Miranda <andreldm@xfce.org> | 2017-11-03 22:41:19 -0300 |
---|---|---|
committer | Andre Miranda <andreldm@xfce.org> | 2017-11-03 22:41:19 -0300 |
commit | a7355a59e2eb5af635f109852216f7d6064ffb70 (patch) | |
tree | fa60e5f03e7dd5ed143d7e42b4e4ad51213964eb /plugins/thunar-sbr | |
parent | 7cca9b2704e029ef59bbc1f885768bde7773986e (diff) | |
download | thunar-a7355a59e2eb5af635f109852216f7d6064ffb70.tar.gz |
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.
Diffstat (limited to 'plugins/thunar-sbr')
0 files changed, 0 insertions, 0 deletions