Closed Bug 331162 Opened 18 years ago Closed 12 years ago

mime doesn't load external program when gnome .desktop file has arguments for exec

Categories

(Firefox :: Shell Integration, defect)

1.0 Branch
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: ralfonso, Unassigned)

References

Details

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051019 Firefox/1.0.7 (Dropline GNOME)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20051019 Firefox/1.0.7 (Dropline GNOME)

I'm experimenting by using WMV files.  My mimeinfo.cache lists mplayer.desktop for video/x-ms-wmv files.  WMV files are described as "Microsoft WMV Video"  

In mplayer.desktop, if the Exec line reads simply "mplayer %F", the download dialog describes the file as "Microsoft WMV Video" and lists mplayer as the the default applications.

It fails if the Exec line has any arguments (I use it to disable the screensaver and set the subtitle font)  

e.g. mplayer -stop-xscreensaver -fontconfig -font "Bitstream Vera Sans" -subfont-autoscale 1 %F

Using that Exec line, Firefox lists the WMV file as "WMV File" and doesn't have any default helper application.  It allows me to set a default.  It's as if Firefox is refusing the MIME-type description on my system and acting as if WMV is not a recognized type.


Reproducible: Always

Steps to Reproduce:
oops, I posted that using 1.0.7, but the behavior is identical in 1.5.0.1
Can you upload some sample files? I'm not quite sure what you mean here.
This is the mplayer.desktop file that works with gnome and firefox.  When a WMV (or other associated file) is downloaded in FF, the download window lists "Movie Player" as the default action.  Notice the "Exec" line has only the application command, no arguments.
This file does not work with gnome and Firefox.  When this file is in use, the Firefox download dialog does not include mplayer (or "Movie Player") as a selection and defaults to "save to disk"
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9a1) Gecko/20060324 Firefox/1.6a1 - Build ID: 0000000000
Setting either of the two .desktop files as the program to open after downloading WMV files seems to have no negative impact on the interface - the default helper application is still there. (I assume this is what you meant?)
I'm not setting this file as the default action for WMV files through Firefox.  This file is part of the Gnome MIME settings.  By default, Firefox does not know what to do with WMV files.  It asks Gnome (if it's running) and Gnome returns whatever is specified.  The desktop files are Gnome configuration files.  

Here is a document that explains the system: http://www.fedoraforum.org/forum/archive/index.php/t-26875.html

So, for some reason Firefox ignores the application that Gnome suggests if there are any arguments on the "Exec" line in addition to the application name.
Blocks: 233462
Component: General → OS Integration
QA Contact: general → os.integration
Version: unspecified → 1.0 Branch
Reporter, are you still seeing this issue with Firefox 5 or later in a fresh profile? http://support.mozilla.com/kb/Managing+profiles
Whiteboard: [CLOSEME 2011-07-31]
Closed per Whiteboard
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Whiteboard: [CLOSEME 2011-07-31]
Resolution: WORKSFORME → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: