XYplorer always opens on new instance

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
kiku
Posts: 141
Joined: 02 Jun 2008 22:32

XYplorer always opens on new instance

Post 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?

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: XYplorer always opens on new instance

Post 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.
Proud XYplorer Fanatic

kiku
Posts: 141
Joined: 02 Jun 2008 22:32

Re: XYplorer always opens on new instance

Post 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.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: XYplorer always opens on new instance

Post 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 ?
Proud XYplorer Fanatic

kiku
Posts: 141
Joined: 02 Jun 2008 22:32

Re: XYplorer always opens on new instance

Post by kiku »

Yes, you are right.
Anyway left the default "<path> - <app>"

Thank you

admin
Site Admin
Posts: 66075
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: XYplorer always opens on new instance

Post 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.

Post Reply