You are not logged in.

#1 2012-06-23 15:06:02

linas
Member
Registered: 2010-03-06
Posts: 46

[Solved] Where is the folder handler defined?

I usually work with gnome. Recently, I installed and opened konqueror in order to view a page with the browser.

From that point on, konqueror seems to have registered itself as default application, opening when an external drive is connected or "Open containing folder" is selected in firefox.

I have looked at ~/.config and dconf for a related key, but I didn't found something like that.

Can anyone provide the location of that setting?

Last edited by linas (2012-06-24 15:44:28)

Offline

#2 2012-06-23 15:36:56

headkase
Member
Registered: 2011-12-06
Posts: 2,008

Re: [Solved] Where is the folder handler defined?

I think it is: Xdg-open that handles that but I am not totally certain.  With that wiki page you can check your configuration files, in your user - not system-wide, to see if indeed Konqueror is set as the default.

Offline

#3 2012-06-23 15:57:21

headkase
Member
Registered: 2011-12-06
Posts: 2,008

Re: [Solved] Where is the folder handler defined?

Here is something you can try:

xdg-open /

For my case that opens the root folder using Thunar.  If in your case that opens the root folder using Konqueror then xdg-open would likely be where your issue lies.

Offline

#4 2012-06-24 15:44:13

linas
Member
Registered: 2010-03-06
Posts: 46

Re: [Solved] Where is the folder handler defined?

Yes, both xdg-open / and gvfs-open / launch konqueror.

Investigating further, I think the reason was that /usr/share/applications/mimeinfo.cache
contains the line:

inode/directory=kde4-kfmclient_dir.desktop;kde4-dolphin.desktop;nautilus.desktop;

Adding to ~/.local/share/applications/mimeinfo.cache the line

inode/directory=nautilus.desktop;

apparently solved the problem.

But why was it that way to begin with?

Offline

#5 2012-06-24 21:14:34

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: [Solved] Where is the folder handler defined?

Have a look in kde4-kfmclient_dir.desktop and kde4-dolphin.desktop.  If they each contain a line like

MimeType=inode/directory;

then that's the cause.  (I have the same problem with thunar.)

Offline

#6 2012-06-24 21:45:39

linas
Member
Registered: 2010-03-06
Posts: 46

Re: [Solved] Where is the folder handler defined?

Both contain that line:
/usr/share/applications/kde4/kfmclient_dir.desktop
/usr/share/applications/kde4/dolphin.desktop

However, I think that's right, as they are able to open folders.

The problem is that kde4-kfmclient_dir.desktop was being prefered (probably because it was listed first).

What placed it there?
There is a small explanation of /usr/share/applications/mimeinfo.cache at http://wiki.debian.org/MIME

/usr/share/applications/mimeinfo.cache is created by update-desktop-database(1).

However, its main page states "The  order  of  the  desktop files found for a MIME type is not significant.  Therefore, an external mechanism must be used to determine what is the preferred desktop file for a MIME type."
I guess that explains why it's placing it in alphabetical order, and xdg-open is just picking the first entry. sad

azleifel, just add the you want in  or ~/.local/share/applications/mimeinfo.cache like I did.

Also, in nautilus you can right-click a folder and choose "Open with other application" (that will store it in ~/.local/share/applications/mimeapps.list in the [Added Associations] section).

Offline

Board footer

Powered by FluxBB