MeanEYE / Sunflower

Small and highly customizable twin-panel file manager for Linux with support for plugins.
GNU General Public License v3.0
427 stars 41 forks source link

Fails to display rename error #502

Closed vfaronov closed 2 years ago

vfaronov commented 2 years ago

When I try to rename file.txt to ///.txt, I should see an error dialog. Instead, nothing happens in the UI, while

the following is printed to the console: ``` Traceback (most recent call last): File "/home/vasiliy/cur/ware/sunflower/master/sunflower/plugins/file_list/file_list.py", line 999, in _rename_file self.get_provider().rename_path(selection, result[1], relative_to=self.path) File "/home/vasiliy/cur/ware/sunflower/master/sunflower/plugins/file_list/local_provider.py", line 234, in rename_path os.rename( OSError: [Errno 18] Invalid cross-device link: '/home/vasiliy/tmp/file.txt' -> '///.txt' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/vasiliy/cur/ware/sunflower/master/sunflower/accelerator_group.py", line 93, in _handle_activate result = callback_method(widget, label) File "/home/vasiliy/cur/ware/sunflower/master/sunflower/plugins/file_list/file_list.py", line 1006, in _rename_file dialog = Gtk.MessageDialog( File "/usr/lib/python3/dist-packages/gi/overrides/__init__.py", line 319, in new_init return super_init_func(self, **new_kwargs) File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 577, in __init__ self._init(*args, **new_kwargs) File "/usr/lib/python3/dist-packages/gi/overrides/__init__.py", line 319, in new_init return super_init_func(self, **new_kwargs) File "/usr/lib/python3/dist-packages/gi/overrides/Gtk.py", line 523, in __init__ _window_init(self, *args, **kwargs) File "/usr/lib/python3/dist-packages/gi/overrides/__init__.py", line 319, in new_init return super_init_func(self, **new_kwargs) TypeError: could not convert value for property `transient_for' from FileList to GtkWindow ```