You are not logged in.

#1 2008-09-02 23:29:56

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

Local paths open with Firefox

Programs that attempt to open a local folder are doing so via Firefox rather than an actual file manager, which is somewhat annoying. (Specifically, I've noted this with winebrowser and Skype). I have no DE, just OB w/ pcmanfm, so I assume this is my problem. Is there any mime info I can add/edit to make the default app something else, like pcmanfm? I've been looking through /usr/share/mime and ~/.local/share/mime and the Wiki, but haven't found anything that helps.

At least, I assume this is related to MIME, please correct me if I'm wrong.

Offline

#2 2008-09-05 23:20:12

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

Re: Local paths open with Firefox

(Bump.)

Google's turned up nothing of use. If Firefox can be used to open local paths, I know something else could be.

Offline

#3 2008-09-05 23:25:38

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Local paths open with Firefox

I can't help you directly, but usually this happens when they're using xdg-open to launch the program instead of the launcher itself. I remember LyX use to do that.

Last edited by skottish (2008-09-05 23:26:06)

Offline

#4 2008-09-06 01:28:36

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

Re: Local paths open with Firefox

What package is xdg-open in? I don't seem to have it.

Offline

#5 2008-09-06 05:21:27

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Local paths open with Firefox

It's owned by xdg-utils which is required by (at least) CUPS and openjdk6.

Offline

#6 2008-09-10 01:24:24

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

Re: Local paths open with Firefox

Thanks. I installed it, and xdg-open uses Firefox to handle local paths too.

I've done some reading on MIME (this was helpful, for others interested: http://library.gnome.org/admin/system-a … -0.html.en ), and I know more than when I started. Unfortunately, to my limited knowledge, I see nothing indicating that Firefox should be the default app for local directories.

I've checked my ~/.local/share/applications/defaults.list and pcmanfm is listed as the default for both application/x-directory and inode/directory. I've verified that pcmanfm.desktop files exist everywhere it seems they should.

And xdg-mime agrees with me:

.:[ b-con@beacon : 18:19:16 : ~/.local/share/applications ]:.
$ xdg-mime query filetype /
application/x-directory
.:[ b-con@beacon : 18:20:52 : ~/.local/share/applications ]:.
$ xdg-mime query default application/x-directory
pcmanfm.desktop

So I'm stumped again. xdg-mime agrees that pcmanfm should be the handler of x-directory, but that's not what xdg-open uses. The same suite of tools appears to be contradicting itself. And, as far as I can tell, firefox never even volunteers to provide the x-directory handler in any of its .desktop files.

Any suggestions? This has stumped me -- and I hate not being able to have applications open a local path..

Last edited by B-Con (2008-09-10 01:31:22)

Offline

Board footer

Powered by FluxBB