You are not logged in.

1

Monday, July 4th 2005, 12:50pm

firefox / kde: "open with"-menu does not work properly

having just installed firefox (running in KDE on debian, newest stable versions), i'm experiencing some strange problems when trying to open downloaded files (with the firefox download manager):

1) the MIME-types / file associations from the KDE control center do not work - for example, i have .pls-files associated with xmms, but i do not even get xmms as an option in firefox's "open with"-dialogue (well, actually i don't get ANY options in the "open with"-dialogue no matter WHAT file type i try to open). strangely, everything works just fine in konqueror !

2) the "open containing folder" option does not work - clicking it has no effect at all. the path to the standard download folder is valid, and firefox downloads the files just fine (i just can't get it to open the folder).

3) all of the above work just fine in GNOME (installed on the same machine) !

any suggestions ? i already tried playing around with firefox's mime.types, to no avail...

thanks !


- pit

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

2

Monday, July 4th 2005, 1:41pm

RE: firefox / kde: "open with"-menu does not work properly

Quoted

Originally posted by pit1516
1) the MIME-types / file associations from the KDE control center do not work - for example, i have .pls-files associated with xmms, but i do not even get xmms as an option in firefox's "open with"-dialogue (well, actually i don't get ANY options in the "open with"-dialogue no matter WHAT file type i try to open). strangely, everything works just fine in konqueror !

There is nothing strange about that.
Firefox doesn't use the KDE MIME type association registry but its own.

Cheers,
_
Qt/KDE Developer
Debian User

3

Monday, July 4th 2005, 1:57pm

RE: firefox / kde: "open with"-menu does not work properly

Quoted

Originally posted by anda_skoa
There is nothing strange about that.
Firefox doesn't use the KDE MIME type association registry but its own.


and is there any way to change that ?

funny thing is, i also use KDE at work and firefox runs just fine here (i don't know if it really uses the KDE MIME type associations, but i do get several meaningful options in the "open with"-menu).

seems to me i made some kind of mistake when installing either KDE or firefox, i just don't have a clue what it is (i didn't change anything on purpose, and as mentioned above, when i use GNOME everything is fine).

anda_skoa

Professional

Posts: 1,273

Location: Graz, Austria

Occupation: Software Developer

  • Send private message

4

Monday, July 4th 2005, 4:28pm

RE: firefox / kde: "open with"-menu does not work properly

Quoted

Originally posted by pit1516

Quoted

Originally posted by anda_skoa
There is nothing strange about that.
Firefox doesn't use the KDE MIME type association registry but its own.


and is there any way to change that ?

No idea, you should really ask Firefox related questions on a Firefoc forum.

Maybe it has an extension for that

Cheers,
_
Qt/KDE Developer
Debian User

5

Monday, September 4th 2006, 12:45am

RE: firefox / kde: "open with"-menu does not work properly

For what it is worth, here is how I fixed the problem of Firefox "Open Containing Folder" either opening Nautilus or nothing at all, rather than Konqueror.

Firefox uses mime types and .desktop files that should be compatible with Gnome and KDE. The directory where this happens is /usr/share/applications.

However, Firefox appears to use a mime type of x-directory/gnome-default-handler for opening directories. This is only supported by nautilus-folder-handler.desktop (on Ubuntu - on FC5 its called gnome-nautilus-folder-handler.desktop).

There are a couple of things required to make this launch konqueror.

Add the x-directory/gnome-default-handler to the mimetype field in kde/kfmclient_dir.desktop.
Remove the OnlyShowIn=KDE line if there is one (there is on FC5, not on ubuntu).

Next run "update-desktop-database" as root.

The mimeinfo.cache file should now show kde-kfmclient_dir as a handler for x-directory/gnome-default-handler.

However, it gets tricky. The order that the handlers appear is important - firefox only looks at the first in the list. But to get to be first in the list, the .desktop file must be later in directory order - i.e. the order shown by ls -U.
This seems a bit of a limitation in the file association system.
From what I've read, specifying an entry in defaults.list should change this order, but it doesn't for me. I hacked it by putting in a symlink to the kde/kfmclient_dir.desktop file in the applications directory.

I didn't want to remove the nautilus entry, but that would have fixed it too.

I hope this helps.

6

Monday, September 4th 2006, 6:46am

RE: firefox / kde: "open with"-menu does not work properly

An easier way is to copy the kfmclient_dir.desktop file from /usr/share/applications/kde to the user's local .local/share/applications directory.

Remove the "OnlyShowIn=KDE" line, and add the mimetype x-directory/gnome-default-handler.

Then as the user run "update-desktop-database ~/.local/share/applications".

Check the local mimeinfo.cache file has been updated.

Restart firefox (IMPORTANT!)

7

Thursday, January 25th 2007, 4:11am

I get no such command

update-desktop-database

8

Thursday, January 25th 2007, 6:30am

/usr/bin/update-desktop-database comes from the package desktop-file-utils

9

Friday, January 26th 2007, 11:15am

firefox 2.0 should use the mime types of kde/gnome, so try upgrading to that version or newer if you don't already use the newest verion.

update-desktop-files is not available on every distribution.
Help mee om KDE 3.5.5 in het Nederlands te vertalen

10

Friday, January 26th 2007, 3:02pm

Please tell me more about this mime feature?

I ma just a noob.

I have Kubuntu 6.10 and KDE 3.5.6 and Firefox 2.0.1

"update-desktop-files" does not work for me.

Please help.

11

Friday, January 26th 2007, 7:48pm

Quoted

Originally posted by robertpolson
Please tell me more about this mime feature?

Not much to tell:
kde and gnome now use a XDG-based mime type system, and the third party application firefox should follow that system since version 2.0
Help mee om KDE 3.5.5 in het Nederlands te vertalen

12

Friday, January 26th 2007, 7:50pm

Whatever that meant, I still cannot get Open and Open Containing folder in Firefox


I am even getting used to not using this feature at all.

This post has been edited 1 times, last edit by "robertpolson" (Jan 26th 2007, 7:50pm)