open file from the command line in already running Oxygen

Oxygen general issues.
Wolfhart
Posts: 37
Joined: Tue Mar 27, 2007 5:46 am

open file from the command line in already running Oxygen

Post by Wolfhart »

Hello,

I am using Oxygen on Ubuntu. I have the following question: Is it possible to open a certain file from the command line in an already running instance of Oxygen? I know that I can open a certain file in Oxygen from the command line by adding it as a parameter when calling the startup script, e.g.

[code]sh /path-to-Oxygen/oxygen.sh /path-to-file/draft.xml[/code]

But when Oxygen is already running, this command will launch another instance of Oxygen. Hence my question: Is it possible to open a certain file from the command line in an already running instance of Oxygen?

Thanks in advance for your help,
Wolfhart
adrian
Posts: 2879
Joined: Tue May 17, 2005 4:01 pm

Re: open file from the command line in already running Oxyge

Post by adrian »

Hi,

For whatever reason, the oxygen.sh startup script includes by default a multiple instance flag which forces each command to start a new instance.
If you want to use the oxygen.sh script to start the application, rather than 'oxygen 16.1' (the default launcher), please edit 'oxygen.sh' and remove this line (or set the argument value to false):

Code: Select all

-Dcom.oxygenxml.MultipleInstances=true\
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Wolfhart
Posts: 37
Joined: Tue Mar 27, 2007 5:46 am

Re: open file from the command line in already running Oxyge

Post by Wolfhart »

Thank you, Adrian! Problem solved.
Post Reply