FS#7213 - Thunar grabs default file manager task in GNOME
Attached to Project:
Arch Linux
Opened by Karel Piwko (kapy) - Saturday, 19 May 2007, 17:05 GMT
Last edited by Roman Kyrylych (Romashka) - Saturday, 02 June 2007, 12:06 GMT
Opened by Karel Piwko (kapy) - Saturday, 19 May 2007, 17:05 GMT
Last edited by Roman Kyrylych (Romashka) - Saturday, 02 June 2007, 12:06 GMT
|
Details
After installing Thunar into GNOME, it becomes default file
manager. There is no way how to change it back. Reinstalling
Nautilus doesn't help.
Thunar must be removed in order to Nautilus become default file manager. thunar Version : 0.8.0-4 nautilus Version : 2.18.1-1 There should be way how to choose default file manager, or, at least, behavior of installation of Nautilus should be the same, i.g. grabing default filemanager role. |
This task depends upon
- start nautilus (from ALT+F2)
- right-click a random folder on your filesystem, click properties
- click open with tab
- change radiobutton from thunar to "open folder"
- click OK
Thunar registers itself as a folder handler. This is not just nautilus where this happens, it also happens with every other package that registers itself for a filetype.
However, I'm still wondering why Thunar has ability to register itself as _default_ folder handler, while Nautilus not. Removing Nautilus with dependencies from system and its new installation, which should register Nautilus as _default_ folder handler didn't work that way.
Thunar uses this mimetype:
MimeType=x-directory/gnome-default-handler;x-directory/normal;inode/directory;
This is the same line as nautilus has. I don't expect thunar to be the default folder handler for GNOME for any reason. KDE also installes a handler for konqueror, they only register on inode/directory, not on x-directory/gnome-default-handler.
As I think that it is impossible to ask users whether they would like to replace its default handler after installation of each application, my suggestion is just add an message to post_install() which should MimeType handler were changed. As this message could be very long in some case, maybe it will be enough to you say that application has installed/changed new MimeType.
Something like that:
[kapy@kapy_ntb ~]$ sudo pacman -S thunar
:: thunar-0.8.0-4: local version is up to date. Upgrade anyway? [Y/n] y
resolving dependencies... done.
looking for inter-conflicts... done.
Targets: thunar-0.8.0-4
Total Package Size: 1.05 MB
Proceed with installation? [Y/n] y
checking package integrity... done.
cleaning up... done.
(1/1) checking for file conflicts [#####################] 100%
(1/1) upgrading thunar [#####################] 100%
Application has changed default MimeType handlers. Visit http://wiki.archlinux.org/index.php/MimeType_Handlers for more info.