Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#23397 - [firefox] Uses gnome defaults instead of xdg-open

Attached to Project: Arch Linux
Opened by Ng Oon-Ee (ngoonee) - Wednesday, 23 March 2011, 05:24 GMT
Last edited by Ionut Biru (wonder) - Saturday, 09 July 2011, 17:01 GMT
Task Type General Gripe
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
I've been using the firefox4 package in the AUR, once --with-system-nspr was added it uses xdg-open when the launch() function is called by extensions. Refer to [1].

Now that firefox and xulrunner in [extra] have been updated, the launch() function no longer calls xdg-open. Instead it uses the defaults for nautilus (hence the gnome defaults), even though I'm not actually running gnome.

I'm at a loss which of the options in mozconfig actually causes this, can't even actually call it a bug. However, for minimal systems xdg-open is generally preferable to gnome-open, I'd rather not have to set my default apps twice.

Additional info:
* package version(s)
firefox 4.0-1
xulrunner 4.0-1
* config and/or log files etc.

[1] - http://forums.zotero.org/discussion/16797/linux-type-applicationpdf-cannot-be-handled-natively
This task depends upon

Closed by  Ionut Biru (wonder)
Saturday, 09 July 2011, 17:01 GMT
Reason for closing:  Fixed
Additional comments about closing:  firefox 5
Comment by Paweł (Pawlerson) - Thursday, 31 March 2011, 16:55 GMT
Firefox isn't a gnome application, so it shouldn't use gnome-open.
Comment by Ng Oon-Ee (ngoonee) - Thursday, 31 March 2011, 21:06 GMT
You'd think so, wouldn't you? The fact is on my system it does. This is a conscious decision (AFAICT from googling) from Mozilla to improve support for MIME-types (by using gnome-open and whatever the KDE equivalent is) for the big DEs. The fact is firefox4 from the AUR works with xdg-open and firefox/xulrunner from [extra] doesn't.
Comment by Ionut Biru (wonder) - Thursday, 31 March 2011, 21:12 GMT
mozilla is using gnomevfs to handle mime-types and it passed the request to libgnome->gnome-open but in our package i dropped gnomevfs support and use gio from glib2. It works perfectly in gnome 3 and kde 4.

the gnomevfs to gio patch was committed already in mozilla-center and it would be available for firefox 5 :).
Comment by Ng Oon-Ee (ngoonee) - Thursday, 31 March 2011, 21:22 GMT
@wonder - you're saying previously observed behaviour (using xdg-open) was a bug? I will try recompiling xulrunner without said patch and see what I get. May just maintain xulrunner-legacy or something in the AUR and see if I can convince upstream to better support us poor non-DE users.

A question, if you have the time - does this mean firefox on KDE would also use the gnome defaults (via gio?) Or is there mechanisms to select which defaults to use?
Comment by Ionut Biru (wonder) - Thursday, 31 March 2011, 21:35 GMT
you can try to recompile xul having that patch but dropping ac_add_options --disable-gnomevfs from mozconfig
Comment by Ng Oon-Ee (ngoonee) - Tuesday, 12 April 2011, 07:21 GMT
Sorry for late reply, been busy with other things. I can confirm that changing that option reverts behaviour. Can I request such change to be made to the repo package, or should I instead maintain my own different xulrunner?
Comment by Ionut Biru (wonder) - Tuesday, 28 June 2011, 21:51 GMT
still valid?
Comment by Ng Oon-Ee (ngoonee) - Wednesday, 29 June 2011, 04:13 GMT
No, since changing over it appears to work as before (uses xdg-open, no more gnome-open). Of course, much has changed in between from the Gnome point of view as well. This bug can be closed.

Loading...