After thinking about it, my above proposed soultion wouldn't work.
The reason is that the MimeType line in .desktop files can contain multiple entries and its possible that you would only want to set a priority on one of them.
So, as an alternative, I think that the following could work.
instead of
MimeType=inode/directory;
in the baobab.desktop file. It would be:
MimeType=inode/directory:1;
where the :1 is the priority for the preceding mimetype.
Edit: This still needs upstream support. I'll file a feature request later today.
That worked for chromium, thanks! But at the time inserting removable media the problem is still there.
EDIT: After logging out and in now everything is fine.
]]>Admittedly, I didn't look before.
]]>The reason is that the MimeType line in .desktop files can contain multiple entries and its possible that you would only want to set a priority on one of them.
So, as an alternative, I think that the following could work.
instead of
MimeType=inode/directory;
in the baobab.desktop file. It would be:
MimeType=inode/directory:1;
where the :1 is the priority for the preceding mimetype.
Edit: This still needs upstream support. I'll file a feature request later today.
]]>I ran into this a few days back. To fix it on a new install I run the following (Part of my install script)
## Removes nautilus.desktop from the inode/directory line (if present) and then re-adds it as the first item/default handler
# sed -i -e '/^inode\/directory/s|nautilus.desktop;||' -e '/^inode\/directory/s|=|=nautilus.desktop;|' /usr/share/applications/mimeinfo.cache
# update-mime-database /usr/share/mime
This assumes that nautilus is installed, and it makes it the systemwide default for handling directories.
This may be a FreeDesktop.org problem. Maybe they need to allow setting priority on mimetypes for apps that should never be the default.
What I'm thinking is that babbab would set a 'MimePriority=1' in it's .desktop file and .desktop files w/o a MimePriority (i.e. file managers) would be assumed to have a priority of 50.
Higher priorities would always be sorted first in mimeinfo.cache.
Thoughts? Is there already a way to do what I'm suggesting, or should I file a FreeDesktop.org bug?
]]>I'm still a Linux newbie...Incoming stupid questions.
I edited /usr/share/applications/baobab.desktop and removed
MimeType=inode/directory;
from the file. Is this what I need to do?
run as root update-desktop-database -q
Also, what do you mean by report it upstream? Please excuse my ignorance.
bugzilla.gnome.org
]]>I edited /usr/share/applications/baobab.desktop and removed
MimeType=inode/directory;
from the file. Is this what I need to do?
Also, what do you mean by report it upstream? Please excuse my ignorance.
]]>You should report that upstream and paste the link here or at least, add me to cc.
]]>Removing Baobab made it so that Nautilus opened the folders, but I like to use Baobab, and reinstalling it caused the problem to come back.
]]>