Different tab sessions - how?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
phitsc
Posts: 124
Joined: 05 May 2009 12:21

Different tab sessions - how?

Post by phitsc »

I'd like to use XYplorer in the following scenario:

- Have one instance of XYplorer running containing all my opened tabs and remember them when I close this instance.
- Have one or more other instances of XYplorer running by starting them in single pane mode with no tabs open (like Windows File Explorer started with Win + E). When I close one of these, they should not store any opened tabs and not influence the tabs of my primary XYplorer session.

I've made an AHK script with two different keyboard shortcuts to open the respective 'sessions' each starting XYplorer with a different ini file. The problem is that they seem to share the same 'tab storage location' (don't know how tabs are actually stored), even though I have the second XY ini file configured to actually 'Don't save tabs'. The effect I'm experiencing is that when I close the 'Don't save tabs' instance it will 'clear' the stored tabs of my primary instance.

Is there any way (possibly a setting I'm missing) to do what I want?

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

Re: Different tab sessions - how?

Post by admin »

Try to pass not just different ini files but different app data paths.

phitsc
Posts: 124
Joined: 05 May 2009 12:21

Re: Different tab sessions - how?

Post by phitsc »

That does the trick. Thanks!

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Different tab sessions - how?

Post by Stefan »

phitsc wrote:That does the trick. Thanks!
How did you do this? Like

Normal mode:
run XYplorer.exe /ini=X:\XYplorer\Data1\

single pane mode:
run XYplorer.exe /ini=X:\XYplorer\Data2\

?

phitsc
Posts: 124
Joined: 05 May 2009 12:21

Re: Different tab sessions - how?

Post by phitsc »

yes, basically like that.

Here's my AHK script. Win + X will start the primary instance or make it active if already running. Win + Ctrl + X will start empty XYplorers. Maybe it would make sense to rename one of the ini files to make it more obvious in the Window Title that it's a different 'session'.

Code: Select all

#NoTrayIcon

#x::
Process Exist, XYplorer.exe
If ErrorLevel
{
	SetTitleMatchMode 2
	WinRestore XYplorer.ini
	WinActivate XYplorer.ini
}
Else
{
	Run %ProgramFiles%\XYplorer\XYplorer.exe /ini=XYplorer.ini
}
Return

#^x::
Run %ProgramFiles%\XYplorer\XYplorer.exe /ini=C:\Temp\XYplorer.ini
Return

#!x::ExitApp

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Different tab sessions - how?

Post by Stefan »

Ahh, i see. Thanks!

Post Reply