Re: Another problem about launching external applications

Eirik Byrkjeflot Anonsen <[email protected]> Mon, 22 Aug 2011 07:44:20 +0200
Newsgroups gmane.comp.web.opera.linux
Message-ID <[email protected]>
[email protected] writes:

>> Ranousse <[email protected]> writes:
>> 
>> > And here's another thing I don't understand
>> > I have in operaprefs.ini
>> > audio/mp3=7,xterm -e mplayer,,,mp3,|
>> > and
>> > audio/x-mpegurl=7,xterm -e mplayer -playlist,,,m3u,|
>> >
>> > This means open with xterm -e mplayer [-playlist] and pass directly the
>> > url to the applications (7).
>> > When I clic on a mp3 file it opens a dialog box asking if I want to
>> > download the file or open it or .... If I choose open, the file is
>> > opened with the correct application, and the url is passed directly to
>> > the application (good)
>> > When I clic on a m3u playlist opera does the same thing except that it
>> > opens the file without showing the dialog box.
>> >
>> > Obviously it's not linked with -playlist word. I also tried with other
>> > filetypes avi, ...
>> > video/x-msvideo=7,xterm -e mplayer,,,avi,|
>> > and obtains the same result as with m3u.
>> >
>> > Why is there a difference only with mp3 files?
>> > In fact I prefer the way mp3 files are handled here.
>> 
>> That sounds really odd.  Maybe there is another entry that matches the
>> mp3 file?  If you change 'xterm -e mplayer' to 'xterm -hold -e echo', do
>> you get an xterm showing the url?
>
> If I change xterm -e mplayer with xterm -hold -e mplayer, when I clic on
> a mp3 file opera propose to open with
> xterm -hold -e mplayer
> instead of
> xterm -e mplayer
> And if I press enter it opens the file with xterm -hold -e mplayer (as
> expected).

That rather does seem to indicate that this is the entry that is used.
Unless this entry is only used for the suggested application, and there
is another entry that causes the dialog to be popped up.  I would guess
that the mime type (audio/mp3) is more important than the "file name"
extension (mp3).

However, I see that if I try to have two entries with the same mime
type, only the last one remains after running opera (testing with my
current development version).

It works "correctly" for me. That is, it runs the command without
opening any dialog.  While I'm testing on a very experimental
development version, I would expect this behaviour to be mostly the
same.

Could you try if it behaves the same way with a clean install?  The easy
way to test this is to start opera with the parameter "--personaldir"
giving a directory name that doesn't exist.  E.g. as so:

opera --personaldir test_operadir

(Make sure "test_operadir", or whatever you choose does not already
exist.)

[email protected] writes:

>> That sounds really odd.  Maybe there is another entry that matches the
>> mp3 file?  If you change 'xterm -e mplayer' to 'xterm -hold -e echo', do
>> you get an xterm showing the url?
>
> I didn't read carefully your answer. Yes if I write you command it shows
> the url.

I was curious as to whether that actually worked correctly :)

(I assume that you still get the dialog, though.)

eirik
--
Opera-Linux: https://list.opera.com/mailman/listinfo/opera-linux
More lists: https://list.opera.com/mailman/listinfo/
Unsubscribe: mailto:[email protected]?subject=unsubscribe