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
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Tobias Kieslich (tobias)
Architecture All
Severity Low
Priority Normal
Reported Version 0.8 Voodoo
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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

Closed by  Roman Kyrylych (Romashka)
Saturday, 02 June 2007, 12:06 GMT
Reason for closing:  Fixed
Comment by Jan de Groot (JGC) - Saturday, 19 May 2007, 17:50 GMT
To fix this:
- 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.
Comment by Karel Piwko (kapy) - Saturday, 19 May 2007, 18:40 GMT
Fix by suggested solution works.

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.
Comment by Jan de Groot (JGC) - Saturday, 19 May 2007, 20:36 GMT
Thunar installs a .desktop file with a mime-type that handles directories. Nautilus does the same thing. With .desktop files, usually, the last installed .desktop file becomes the default one, except when you selected a custom application. Reinstalling nautilus won't trigger a change, uninstalling and reinstalling it should.

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.
Comment by Roman Kyrylych (Romashka) - Monday, 21 May 2007, 19:02 GMT
JGC, this reminded me http://bugs.archlinux.org/task/5785 ;-)
Comment by Tobias Kieslich (tobias) - Friday, 01 June 2007, 21:43 GMT
so are there any suggestions to handle that? We can't determine the order of packages the user wants to install packages ...
Comment by Roman Kyrylych (Romashka) - Friday, 01 June 2007, 21:48 GMT
I think removal x-directory/gnome-default-handler from MimeType should be OK.
Comment by Karel Piwko (kapy) - Saturday, 02 June 2007, 09:58 GMT
By this way we won't be able to install Thunar as default Gnome File Manager in an easy way.

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.


Loading...