Kupfer in XFCE always opens file with Nautilus instead of Thunar

Bug #748924 reported by Marco Milone
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kupfer
New
Undecided
Unassigned

Bug Description

Hi all, I was an hardcore Kupfer user when my DE was Gnome but I recently switch to XFCE...
Under XFCE when I try to open folders with Kupfer it opens them with Nautilus instead of Thunar.
I found the same issue in LXDE (nautilus instead of PCmanFM). Is there a way to tell kupfer which File manager use?
I already set
x-directory/gnome-default-handler=Thunar-folder-handler.desktop
x-directory/normal=Thunar-folder-handler.desktop
inode/directory=Thunar-folder-handler.desktop
in ~/.local/share/applications/mimeinfo.cache and in ~/.local/share/applications/defaults.list (this method solved for other apps) but this ain't work for Kupfer.

Thank you!!!

Revision history for this message
X (u78qir8a9-deactivatedaccount) wrote :

When I edit

~/.local/share/applications/mimeapps.list and change it to Thunar.desktop, then Kupfer immediately follows this instead.

Do you have gvfs installed?

Anyway, the supported way to change this is using Set Default Application from Kupfer itself:

http://kaizer.se/wiki/kupfer/help/plugin-applications.html

It should basically be equivalent of editing the user mimeapps.

Revision history for this message
Marco Milone (milozzy) wrote :

First of all, thank you very much for the reply.

- Did you set Thunar.desktop for which entries?
x-directory/gnome-default-handler? x-directory/normal ?inode/directory? All of them?

- I have gvfs installed

- I tried but this plugin doesn't seem to work with directories, only with apps.

Thank you again!

Revision history for this message
Marco Milone (milozzy) wrote :

"- I tried but this plugin doesn't seem to work with directories, only with apps."

Sorry, I mean "only with files", not apps obviously.

Revision history for this message
Marco Milone (milozzy) wrote :

Ok, my bad!
I was searching "home" in Kupfer and the plugin didn't seem to work, but if I type "Documents", "Videos" etc it works perfectly! Thank you!

However, there is stil one problem: if I log back to Gnome and I tried to open a folder from "Applications - Resources -System" menu bar on the top panel, now I see Thunar and not Nautilus!
Is there a way to make the two DE to coexist?

Revision history for this message
X (u78qir8a9-deactivatedaccount) wrote :

As you have discovered, XFCE and GNOME have the same database for application associations and no special-casing. This is their version of "coexist" I guess. We don't support any desktop environment special-casing because the backend we have today is convenient and correct on XFCE and GNOME.

It basically will always behave like double-clicking a file or folder in Thunar or Nautilus. The exception is that these file managers open folders in themselves, not using the default viewer.

Anyway, everything can be solved. Maybe if you manage to set xdg-open as the default opener, that it will adapt at runtime to the DE that is running.

Revision history for this message
Marco Milone (milozzy) wrote :

Ok, I understand!! Thank you so much for the help!
The idea of setting xdg-open is the right path to follow I think...but I don't know how to do it!

Anyway, thank you again!

Revision history for this message
X (u78qir8a9-deactivatedaccount) wrote :

Haha, I'm sorry for the very bad advice. I set xdg-open to be the default opener, then it calls itself recursively. :-/

All of these tools use the same applications association database as we do, except for folders. So, we only support one setting for default file manager. I'm unsure what to do to improve that.

Revision history for this message
X (u78qir8a9-deactivatedaccount) wrote :

You need something like the attached program

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.