Only one file in instance

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, xnview

krzysiu
Posts: 16
Joined: Thu Apr 07, 2016 8:52 pm

Only one file in instance

Post by krzysiu » Wed Jun 29, 2016 3:17 am

Hello,

Is there a way to allow one instance of XnViewMP to open only one file. I had tabs hidden and recently XN started to act very slowly. When I opened tabs, I've noticed more than 100 files in tabs. Also the behavior is weird for me (from user point of view, not "how code works"):
1) I open instance I (by choosing file in win explorer) and it have in tabs file A
2) I open inst. II with file B
3) Closing instance II then I
3) I open inst. III with file C and I've in tabs AC
4) I open inst. IV, file D and I have tabs AD
5) I close both instances, IV is the last and I open files E, F, G, H - I close instance after each opening
6) Now I have in tabs ACDEFGH

So it's not "last files", it's "last files of last closed instance" and to close picture, I can't use main close button, because they will stay in list. I need to close it by closing tab (or pressing escape) and with setting "close XN after last tab" it also closes instance and doesn't bring back recently opened files after restart.

What I'd want is to be able to close XN e.g. by F4, then open other file and have only one tab - with current file. There's a setting with max number of tabs, but I don't know quite what does it do. It's set to 1. Also I didn't change in settings and this behavior looks rather like something new. Earlier when I modified image, then I wanted to paste a new image (ctrl+alt+v), it asked me if I wanted to save previous file - of course, because I wanted a new pic (by pasting something) and prev was closing. Now it's not anymore like that - every ctrl+alt+v doesn't current file, but creates new tab.

Sorry, I know I'm free to go, but with every new version of XNViewMP there's more and more bugs - a year ago it worked well, now I can't anymore use it as main viewer. That's not good for me, because it used to be the best for my needs. I have to admit, it's more stable, tho. No more random crashes for me.

User avatar
xnview
Author of XnView
Posts: 31340
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Only one file in instance

Post by xnview » Wed Jun 29, 2016 7:08 am

Do you have tried by disabling the session restoring? I think that you don't want session to be restored, right?

i've changed the way that session is restored, if you open a file from windows explorer, the session must be restored.
Pierre.

krzysiu
Posts: 16
Joined: Thu Apr 07, 2016 8:52 pm

Re: Only one file in instance

Post by krzysiu » Wed Jun 29, 2016 10:33 pm

Not yet, but that sounds exactly like the thing I need. Thanks a lot!

BTW wouldn't it be better to save session not on XnViewMP close, but on file open? This way I'd have (using my example):
1) A
2) AB
3) ABC
4) ABCD
Which is the same as opened files. Saving on close causes it to be A>B>AC>AD.

PS: Thanks again, works flawlessly!

carrabino
Posts: 7
Joined: Sat Jul 02, 2016 3:05 pm

Re: Only one file in instance

Post by carrabino » Sat Jul 02, 2016 3:12 pm

> Do you have tried by disabling the session restoring?

Where exactly do we manage sessions?

I love XnView, but i am really not liking multiple tabs, especially as i open many images, i see each xnview instance with more and more tabs. Very weird behavior.

When i open an image from Windows Explorer, i want to see a single XnView MP instance per image. No tabs.
I need to compare images side-by-side and tabs are not good for my needs.

How do i achieve this?

thanks,
Anthony.

User avatar
XnTriq
Moderator & Librarian
Posts: 5423
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: Only one file in instance

Post by XnTriq » Sat Jul 02, 2016 8:30 pm

carrabino wrote:Where exactly do we manage sessions?
Tools » Settings... » General » General » Confirm 'Session' saving on program exit

Alternative method:
  1. Reset all confirm prompts in Tools » Settings... » General » General.
  2. Open an image in the viewer and quit XnView.
  3. You'll be asked to confirm if “you want to save this session” and if you want XnView to “show this message again”.
Related topics:

carrabino
Posts: 7
Joined: Sat Jul 02, 2016 3:05 pm

Re: Only one file in instance

Post by carrabino » Thu Jul 14, 2016 6:16 am

This is not working.

I want XnViewMP to open the SINGLE image i click on.
No TABS. No remembering of the 100 other images i clicked on.
Just focus on opening the single image i clicked on.
And when i click another image, open a new instance of XnViewMP and show that image.

I want XnViewMP to STOP remembering and opening all the images i click on.

I don't want TABS, i don't want XnView to "remember" all the other images i clicked.

How exactly do i setup XnViewMP to achieve this?

Anthony.

User avatar
xnview
Author of XnView
Posts: 31340
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Only one file in instance

Post by xnview » Thu Jul 14, 2016 7:07 am

do you have disabled settings>general>confirm session saving?
Pierre.

Erixx haxx
Posts: 330
Joined: Tue Jul 28, 2015 10:37 am

Re: Only one file in instance

Post by Erixx haxx » Thu Jul 14, 2016 10:32 am

carrabino wrote:I want XnViewMP to STOP remembering and opening all the images i click on.
I don't want TABS, i don't want XnView to "remember" all the other images i clicked.
How exactly do i setup XnViewMP to achieve this?
Anthony.
I just use:
Options>> Interface>> Tabs

Set max number of tabs to = 1

carrabino
Posts: 7
Joined: Sat Jul 02, 2016 3:05 pm

Re: Only one file in instance

Post by carrabino » Sat Jul 16, 2016 2:26 pm

I set it to "1 tab" ... it does not work.

Try this ...
1. run Windows Explorer
2. open 2 image files located in 2 different folders ... (double click on these 2 files)
e.g.
c:\folder1\A.jpg
c:\folder2\B.jpg

Result:
both image are opened in 1 instance of XnView in 2 tabs

carrabino
Posts: 7
Joined: Sat Jul 02, 2016 3:05 pm

Re: Only one file in instance

Post by carrabino » Sat Jul 16, 2016 2:34 pm

xnview wrote:do you have disabled settings>general>confirm session saving?
Yes.

Key Settings:
[ ] Confirm "Session" saving (unchecked
Startup: [x] Open Browser
Startup Directory: (x) Last
[ ] Multiple view for same file (unchecked)
[x] Synchronize browser when view is closed
Maximum of view tabs (1)


Now, run Windows Explorer
Go to any folder with multiple image files

Click on an image (refer to this as image1)
(Leave XnView open)
Alt-tab back to Windows Explorer
click on a 2nd image (refer to this as image2)

I now have 2 instances of XnView (fine)
XnView Instance 1 = shows image1
But on the 2nd instance on XnView, i see 2 tabs .... showing image1 and image2

Erixx haxx
Posts: 330
Joined: Tue Jul 28, 2015 10:37 am

Re: Only one file in instance

Post by Erixx haxx » Sat Jul 16, 2016 6:59 pm

2 more questions.

- Are you using current beta v0.82b-3 (startup into fullscreen was just fixed here)
- Options>> General>> Allow only 1 instance is un-ticked
- Options>> Max tabs set to 1


I just tried as you say and it works for me.
I am using right click open with. if that matters...

XnView Instance 1 = shows image1 and 1tab
XnView Instance 2 = shows image2 and 1tab

We are talking about fullscreen. right

carrabino
Posts: 7
Joined: Sat Jul 02, 2016 3:05 pm

Re: Only one file in instance

Post by carrabino » Sun Jul 17, 2016 6:40 pm

xnview wrote:Do you have tried by disabling the session restoring? I think that you don't want session to be restored, right?

i've changed the way that session is restored, if you open a file from windows explorer, the session must be restored.
Please Pierre ... consider my use case:

I use Windows Explorer (all day) to bounce in and out of many folders.
Often times, the same folder. I open hundreds of images daily.

When i click an image, i just want XnView to show the image as fast as possible. That's all.
I don't want tabs. I don't want sessions, etc. Just show me the image.

I realize that XnView is more powerful than that ... great.

My suggestions ...
Please add a setting called "Single image view mode from Windows Explorer" that disables all that session code, and simply opens 1 image quickly. Don't restore a session, don't save a session. It's killing performance. The various suggestions posted to this thread do not work well ... using 1 tab etc. Nothing doesn't change the fact that ALL the images from the "session" are being loaded (whether you show the tabs or not, its slowing everything down and performance becomes worse and worse as i open more images. I open and close hundreds of images daily. I don't want XnView to remember anything ... just open image that's been click and that's all.

thanks for your consideration ...
Anthony

Erixx haxx
Posts: 330
Joined: Tue Jul 28, 2015 10:37 am

Re: Only one file in instance

Post by Erixx haxx » Mon Jul 18, 2016 7:39 am

Please reread my post above.

This is working the way you are saying you want it too.
- Are you using current Beta v0.82b-3 (Startup into Fullscreen was just fixed here)
- Options>> General>> Allow only 1 instance is un-ticked
- Options>> Max tabs set to 1


I just tried as you say and it works for me.
I am using right click open with. if that matters...

XnView Instance 1 = shows image1 and 1tab
XnView Instance 2 = shows image2 and 1tab

We are talking about fullscreen. right

carrabino
Posts: 7
Joined: Sat Jul 02, 2016 3:05 pm

Re: Only one file in instance

Post by carrabino » Wed Jul 20, 2016 5:35 am

Erixx haxx wrote:2 more questions.

- Are you using current beta v0.82b-3 (startup into fullscreen was just fixed here)
- Options>> General>> Allow only 1 instance is un-ticked
- Options>> Max tabs set to 1


I just tried as you say and it works for me.
I am using right click open with. if that matters...

XnView Instance 1 = shows image1 and 1tab
XnView Instance 2 = shows image2 and 1tab

We are talking about fullscreen. right
i download XnViewMP from here:
http://www.xnview.com/en/xnviewmp/

i don't see anywhere to download the beta (v0.82b-3) ...
i have:
Version 0.81 x64 (Jun 27 2016) ... i just re-downloaded and re-installed, same thing.
Libformat version 6.90
Windows 7, 64-bit

It runs in "restored" screen size (not full, not minimized, just a regular window) exactly as i like it.

carrabino
Posts: 7
Joined: Sat Jul 02, 2016 3:05 pm

Re: Only one file in instance

Post by carrabino » Thu Jul 21, 2016 1:35 pm

Image

please see the screenshot.

Post Reply