You are not logged in.
I am using GNOME 3 for my desktop and AWN for a launcher. Every time I open a directory in either Cardapio or any of the default menus on AWN, Baobab opens and tries to analyze the folder. How can I set it so that Nautilus opens these? I feel as if the problem is deeper than AWN and the applets, if many do the same thing.
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.
Offline
it happens because baobab exports the mimetype.
http://git.gnome.org/browse/baobab/comm … ab5ca6cd02
You should report that upstream and paste the link here or at least, add me to cc.
Give what you have. To someone, it may be better than you dare to think.
Offline
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?
Also, what do you mean by report it upstream? Please excuse my ignorance.
Offline
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
Give what you have. To someone, it may be better than you dare to think.
Offline
The fix above removes a wanted feature of baobab, namely, the ability to launch baobab from the right click menu of a folder.
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?
Last edited by techryda (2012-11-02 10:52:15)
Offline
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.
Last edited by techryda (2012-11-02 11:42:54)
Offline
And now I find: https://bugs.archlinux.org/task/31861
Admittedly, I didn't look before.
Offline
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.
Last edited by i18nde (2012-11-07 16:17:37)
Strawberry fields forever!
Offline
Seems like upstream won't fix this and each distro should provide a default mimetypes package...
Offline