Apache OpenOffice (AOO) Bugzilla – Issue 87977
SystemShellExecute.execute(<document>) opens always Firefox in Linux
Last modified: 2013-02-24 21:06:37 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.
jsc -> hro: i am not sure but is it maybe your area?
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.
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
jsc -> hro: i am not the right owner for this issue
@jsc: Sorry I meant jsk @jsk: Please confirm
@obr: Any idea ?
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 ***
close
tobiaskrais -> jsk: is duplicate of 88440 and fixed in OOo3 (tested with OOo3rc1 on Ubuntu Hardy with Sun OOo).
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.
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
tkr->hro: Please take over
.
Update: still same in OOo 3.1
cd: Something for you? System shell execution service issue.
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
Irreproducible
Closing