Page 1 of 1

Different tab sessions - how?

Posted: 24 Sep 2010 13:12
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?

Re: Different tab sessions - how?

Posted: 24 Sep 2010 13:16
by admin
Try to pass not just different ini files but different app data paths.

Re: Different tab sessions - how?

Posted: 24 Sep 2010 13:37
by phitsc
That does the trick. Thanks!

Re: Different tab sessions - how?

Posted: 24 Sep 2010 13:43
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\

?

Re: Different tab sessions - how?

Posted: 24 Sep 2010 14:00
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

Re: Different tab sessions - how?

Posted: 24 Sep 2010 16:02
by Stefan
Ahh, i see. Thanks!