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

RESOLVED INCOMPLETE

Status

()

RESOLVED INCOMPLETE
13 years ago
7 years ago

People

(Reporter: ralfonso, Unassigned)

Tracking

(Blocks: 1 bug)

1.0 Branch
x86
Linux
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

13 years ago
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:
(Reporter)

Comment 1

13 years ago
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.
(Reporter)

Comment 3

13 years ago
Created attachment 216164 [details]
Working mplayer.desktop file

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.
(Reporter)

Comment 4

13 years ago
Created attachment 216166 [details]
non-working mplayer.desktop file

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?)
(Reporter)

Comment 6

13 years ago
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.

Updated

13 years ago
Blocks: 233462
Component: General → OS Integration
QA Contact: general → os.integration

Updated

8 years ago
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]

Comment 8

7 years ago
Closed per Whiteboard
Status: UNCONFIRMED → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → WORKSFORME
Whiteboard: [CLOSEME 2011-07-31]

Updated

7 years ago
Resolution: WORKSFORME → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.