Page 1 of 1

open file from the command line in already running Oxygen

Posted: Sat Mar 07, 2015 4:04 am
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

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

Posted: Mon Mar 09, 2015 7:43 pm
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

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

Posted: Thu Mar 12, 2015 6:12 am
by Wolfhart
Thank you, Adrian! Problem solved.