Issue 87977 - SystemShellExecute.execute(<document>) opens always Firefox in Linux
Summary: SystemShellExecute.execute(<document>) opens always Firefox in Linux
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All Linux, all
: P3 Trivial
Target Milestone: ---
Assignee: carsten.driesner
QA Contact: issues@api
URL: http://api.openoffice.org/servlets/Re...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-07 08:48 UTC by tobiaskrais
Modified: 2013-02-24 21:06 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Zip file with documents to test (55.03 KB, application/zip)
2012-10-17 11:54 UTC, Ariel Constenla-Haile
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description tobiaskrais 2008-04-07 08:48:20 UTC
I want to use the SystemShellExecute.execute method to open Documents
that OOo can not open. Giving the file location as the parameter
aCommand opens the document with the default application in Windows. In
Linux my Firefox is opened, which again opens the default application.

The code definition
(http://api.openoffice.org/docs/common/ref/com/sun/star/system/XSystemShellExecute.html)
states: "Parameter aCommand: Specifies the command to execute. This may be an
executable file or a document which is registered with an application on a
specific platform, so that the platform knows what application to launch for
that document. If the command specifies a path to an executable, etc, this has
to be a system specific path."
Thus the default application should start up in Linux as it does in Windows and
not starting up Firefox.
Comment 1 jsc 2008-04-14 08:46:27 UTC
jsc -> hro: i am not sure but is it maybe your area?
Comment 2 hennes.rohling 2008-04-21 13:44:38 UTC
What kind of document opens in Firefox ?
Is this document type actually registered for Firefox ?
What kind of desktop environment (GNOME, KDE) / distribution ?

Needs confirmation.
Comment 3 tobiaskrais 2008-04-22 08:08:56 UTC
What kind of document opens in Firefox ?
- All, even ODF documents!

Is this document type actually registered for Firefox ?
- No. E.g. ODF is registered for OOo, PDF for Acrobat,...

What kind of desktop environment (GNOME, KDE) / distribution ?
- System: Ubuntu Gutsy and Hardy, Debian Lenny
- Desktop environment: Gnome and KDE
Comment 4 jsc 2008-04-25 09:39:00 UTC
jsc -> hro: i am not the right owner for this issue
Comment 5 hennes.rohling 2008-04-25 11:44:08 UTC
@jsc: Sorry I meant jsk

@jsk: Please confirm
Comment 6 hennes.rohling 2008-04-25 11:45:17 UTC
@obr: Any idea ?
Comment 7 nospam4obr 2008-04-25 12:46:42 UTC
Probably the same root cause as issue 88440. Feel free to re-open this issue if
the problem still appears in DEV300_m11 / BEA300_m2 or later.

*** This issue has been marked as a duplicate of 88440 ***
Comment 8 joerg.skottke 2008-05-30 11:41:33 UTC
close
Comment 9 tobiaskrais 2008-09-29 09:20:45 UTC
tobiaskrais -> jsk: is duplicate of 88440 and fixed in OOo3 (tested with OOo3rc1
on Ubuntu Hardy with Sun OOo).
Comment 10 tobiaskrais 2008-09-29 09:54:56 UTC
tobiaskrais -> jsk: Sorry, my last comment was wrong. A colleage of mine changed
my code. Now I retested it. I tried to open a document as described in my first
comment. OpenOffice still opens Firefox and Firefox assigns it to the
application that is system default. If issue 88440 is fixed, this is not a
duplicate of it. I tested on Ubuntu Hardy with Gnome and OpenOffice.org 3rc1
AMD64 Debian packages for the OpenOffice.org website.
I reopened the issue.
Comment 11 joerg.skottke 2008-10-23 14:31:05 UTC
Hmmm. The last comments in this issue indicate a good deal of confusion.
So i set the issue to confirmed and send it to TKR for new evaluation
Comment 12 tkr 2008-10-27 11:11:20 UTC
tkr->hro: Please take over
Comment 13 tkr 2008-10-27 11:16:48 UTC
.
Comment 14 tobiaskrais 2009-05-29 07:32:09 UTC
Update: still same in OOo 3.1
Comment 15 kai.sommerfeld 2009-06-16 10:31:09 UTC
cd: Something for you? System shell execution service issue.
Comment 16 Ariel Constenla-Haile 2012-10-17 11:54:58 UTC
Created attachment 79788 [details]
Zip file with documents to test

The ZIP file has a Writer document with a macro and a folder with sample documents:

* C++ source file
* Java source file
* HTML file
* PDF file
* PNG file

On Fedora 17, with KDE 4, all documents executed with the XSystemShellExectue open on the default application, not the browser:

* C++ source file - openes in Qt Creator
* Java source file - opens in Geany
* HTML file - opens in Konqueror
* PDF file - opens in Okular
* PNG file - opens in Gwenview
Comment 17 Ariel Constenla-Haile 2012-10-17 11:56:44 UTC
Irreproducible
Comment 18 Ariel Constenla-Haile 2012-10-17 11:57:04 UTC
Closing