XY opens multi instances while option is disabled

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: XY opens multi instances while option is disabled

Post by TheQwerty »

I'm surprised this isn't actually part of the documentation or tip in the configuration.

When first introduced in v6.30.0012 it was said:

Code: Select all

v6.30.0012 - 2007-09-15 12:00
. . .
    + ... now you can tweak what's displayed in the titlebar.
      In the INI you'll find a new key:
        [General]
        TitlebarTemplate=...
      A full-blown example (and the new default!) would be:
        TitlebarTemplate={path} - {app} @ {ini} - {ver}
      There are two rules:
        - The presence of the field {app} is obligatory, AND it must
          be surrounded by spaces. This is necessary to correctly 
          identify previous instances of the app with a good chance.
        - This feature is only available in a licensed copy.
          Else the default is used and "### 30-day Trial Version ###"
          is inserted into {ver}.
This got relaxed a bit to allow making <app> the first or last part of the title without requiring a leading or trailing space.

I've never quite understood this requirement. I would think the process path would be enough, but maybe I'm mistaken or maybe a non-admin process cannot detect the path for an admin process?

If this is the way it has to be though...
Part of me thinks XY should just add the spaces if the user does not include them in the pattern.
But another part of me wonders if that's too smart and how many users may become frustrated in trying to get their desired non-space template to work.

In any case this restriction should be mentioned in the documentation, and the section for Allow Multiple Instances should have a note pointing to titlebar template being a potential problem.

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: XY opens multi instances while option is disabled

Post by yusef88 »

TheQwerty :tup:

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: XY opens multi instances while option is disabled

Post by PeterH »

Sorry, I don't really understand: what should spaces here have to do with single/multiple instance?

I'd think this is a :bug: ?

Either spaces around <app> are a must - then they must be forced somehow. (And be it by ignoring the stmt and using the default template.)
Or they are not - then their absence shouldn't have an effect on multi instances.

My 2ct

(My template:
TitlebarTemplate="<path> - <app>@<ini> as <get username>(<get userrole>) | pane: <get pane>("<tabset>") - <ver>"
:whistle: )

klownboy
Posts: 4481
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: XY opens multi instances while option is disabled

Post by klownboy »

If you remember Don did some mods to the titlebar configuration after Sammay's trick appeared which used spaces to make XY's titlebar not appear. See http://www.xyplorer.com/xyfc/viewtopic. ... ar#p117101 This may have something to do with the current issue. Last entry Don stated he would make a change which would allow more than 2 spaces around <app>.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: XY opens multi instances while option is disabled

Post by TheQwerty »

PeterH wrote:Sorry, I don't really understand: what should spaces here have to do with single/multiple instance?
XY uses the title when deciding if an instance is already open - to achieve this there must be something known in the title. Thus <app> is required and to improve the matching XY requires a space on either side of it or for it to be the first/last item in the titlebar.

PeterH
Posts: 2830
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: XY opens multi instances while option is disabled

Post by PeterH »

TheQwerty wrote:
PeterH wrote:Sorry, I don't really understand: what should spaces here have to do with single/multiple instance?
XY uses the title when deciding if an instance is already open - to achieve this there must be something known in the title. Thus <app> is required and to improve the matching XY requires a space on either side of it or for it to be the first/last item in the titlebar.
OK:
if, as I interpreted Don, it's only administrative to show <app>, there should be no technical dependency.
if however there is a technical dependency, neccessary space characters should be forced - just as <app> is forced now.

But to force <app> without forcing neccessary spaces seems strange to me.

Stef123

Re: XY opens multi instances while option is disabled

Post by Stef123 »

Got it solved for my launchbar scenario. But cannot pinpoint what exactly was at fault because I changed too many things at once. It might have been the launcher itself that I updated, the XY update or the title bar that I had to change to meet the new requirement of putting <app> up front, or a combination of things. Anyway, it works now, no more multiple instances.

Post Reply