Page 1 of 1
XYplorer always opens on new instance
Posted: 02 Nov 2008 20:06
by kiku
Hello,
I would like XYplorer to re-use the current running instance but it always opens on a new instance. I have the following settings:
- Open command line start path in new tab: On
- Allow multiples instances: Off
I am using 7.70.0018 and Windows Vista Home Premium 32-bit
I am a bit confused because the wiki says:
Keeping a Single Instance
When starting XY with a start path command line parameter, this path is opened in a new foreground tab of the already loaded instance of XYplorer instead of loading a new one, if option Allow multiple instances is enabled, and Open new instance always is not.
Am I doing something wrong?
Re: XYplorer always opens on new instance
Posted: 02 Nov 2008 20:53
by jacky
Well, I'm not sure why it always opens a new instance, but "Open command line start path in new tab" enabled and "Allow multiples instances" disabled is what I use as well, and I only have one instance, as expected. Can you reproduce that with a fresh installation (i.e. copying XYplorer.exe in another folder, and using a brand new Configuration/INI file) ?
kiku wrote:I am a bit confused because the wiki says:
Keeping a Single Instance
When starting XY with a start path command line parameter, this path is opened in a new foreground tab of the already loaded instance of XYplorer instead of loading a new one, if option Allow multiple instances is enabled, and Open new instance always is not.
On that part, it's to say that need to have option "Allow multiple instances" enabled and option "Open new instance always" is disabled, which I think is automatically the case now (when the former is enabled, the later gets disabled automatically).
How do you start XY ? I'm sure you noted that using either /ini or /win will have a new instance to be opened, always.
Re: XYplorer always opens on new instance
Posted: 02 Nov 2008 22:01
by kiku
Ok, found it
The problem was related with the customized title bar name
Having
TitlebarTemplate="<path> [<app>]"
makes xyplorer always open in a new instance.
Re: XYplorer always opens on new instance
Posted: 02 Nov 2008 22:13
by jacky
kiku wrote:Ok, found it
The problem was related with the customized title bar name
Having
TitlebarTemplate="<path> [<app>]"
makes xyplorer always open in a new instance.
Now that's an interesting one!

I know that <app> is required and must be surrounded by spaces, could it be because your template didn't had it surrounded by spaces ? Maybe if you used "<path> [ <app> ]" it would work ?
Re: XYplorer always opens on new instance
Posted: 02 Nov 2008 22:17
by kiku
Yes, you are right.
Anyway left the default "<path> - <app>"
Thank you
Re: XYplorer always opens on new instance
Posted: 03 Nov 2008 08:31
by admin
jacky wrote:kiku wrote:Ok, found it
The problem was related with the customized title bar name
Having
TitlebarTemplate="<path> [<app>]"
makes xyplorer always open in a new instance.
Now that's an interesting one!

I know that <app> is required and must be surrounded by spaces, could it be because your template didn't had it surrounded by spaces ? Maybe if you used "<path> [ <app> ]" it would work ?
Indeed interesting! The window title bar is used to identify a running instance. I look for pattern "* XYplorer *" (XYplorer surrounded by blanks!) in all windows. If not found, a new instance is opened.