Closing Session with Alt+F4 does Not Properly Close

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
therube
Posts: 5711
Joined: Thu Sep 03, 2009 6:48 pm

Closing Session with Alt+F4 does Not Properly Close

Post by therube »

Everything 1.5

Closing a Session with Alt+F4 (or the 'X' close box) does Not Properly Close (Quit) including (at least)
writing out the .db to disk, & updating/retaining History (session.json),
as in, on re-open,
History | Restore Previous Session
, is unavailable (grayed out).

Not an issue if you File | Exit.


(I may have, or at least in some sessions, redefined Exit, from like Ctrl+Q to Ctrl+Shift+Q, if that might matter.)


Looks like all that does change (or at least is touched) is .ini & Search.History.csv (& .backup's, thereof).

Troubleshooting:

Code: Select all

Everything 1.5.0.1396a (x86)
OS:	Windows NT 6.1 7601 (x64)
Admin:	0
Service:	6 (connected / partially installed)
Command line:	-instance ALTF4
Binary:	C:\DEV\LOCATE\CE+O - ALT+F4-TEST\Everything.exe
Profile:	C:\DEV\LOCATE\CE+O - ALT+F4-TEST\Everything-ALTF4.ini
Database:	C:\DEV\LOCATE\CE+O - ALT+F4-TEST\Everything-ALTF4.db
Instance:	ALTF4

Config:
match_path=1
ignore_punctuation=1
ignore_whitespace=1
shell_max_path=0
shell_execute_short_parameters=1
show_mouseover=0
dupe_group_colors=1
highlight_max_or_paths=256
zoom=134
select_focus_on_lost_selection=1
context_menu_simple_pidl=1
drag_drop_simple_pidl=1
auto_include_fixed_volumes=0
auto_remove_offline_ntfs_volumes=0
find_first_file_path_not_found_retry_timeout=30000
icon_blend_hidden=1
thumbnail_medium_text_lines=3
thumbnail_large_text_lines=2
filelist_preview=0
filelist_context_menu=0
open_many_files_warning_threshold=9
set_foreground_window_attach_thread_input=0
path_hit_text_only=1
snap_toggle_on_shift=1
rename_overwrite=1
allow_literal_operators=1
convert_forward_slash_to_backslash=1
operator_precedence=1
size_format=1
size_number_format=4
ellipsis=0
jump_to_timeout=99999
folder_rescan_timeout=60000
length_dupe_tolerance=900
find_and_select_clear_selection=0
find_and_select_select_folders=0
find_and_select_select_files=0
context_menu_parent_folder=1
custom_open_command01=$exec("C:\WLIB\PLAYERS\mpv.net\mpvnet.exe" %*)
custom_open_command02=$exec("C:\BIN\XXhash64.BAT" %*)
custom_open_command03=$exec("C:\BIN\MI_COMPARE.BAT" %*)
custom_open_command04=$exec("C:\BIN\HEX.exe" %*)
custom_open_command05=$exec(C:\BIN\win32pad.exe K:\xfeRRRRRRR\DONE\DONEX\delme.from.K\new.txt")
custom_open_command06=$exec("C:\BIN\chk.4.EVERYTHING.exe" %*)
filter=EVERYTHING
preview_icon=1
search_for_text_when_you_start_typing=1
search_history_always_suggest=1
columns=[{"name":"Name","width":315},{"name":"Path","width":148},{"name":"Size","width":84},{"name":"Extension","width":36},{"name":"Date Modified","width":112}]
ntfs_volumes=

Policy:

Plugins:

Should be sufficient.
Create a directory, copy Everything.exe, go_ALTF4.BAT, & Session-ALTF4.json into it.
Run go_ALTF4.BAT.


Then,
History | Restore Previous Session

File | Exit

Compare results with File | Exit vs. Alt+F4.

Run go_ALTF4.BAT.
Then,
History | Restore Previous Session

Alt+F4

then,

Run go_ALTF4.BAT.
Then,
History | Restore Previous Session

- you cannot, grayed out


go_ALTF4.BAT:

Code: Select all

cmd /c start .\everything.exe -instance ALTF4 -no-auto-include
Session-ALTF4.json:

Code: Select all

[
	{
		"is_closed":0,
		"window_x":533,
		"window_y":187,
		"window_wide":796,
		"window_high":524,
		"maximized":0,
		"ontop":0,
		"order":0,
		"filters_visible":1,
		"filters_wide":128,
		"filters_right_align":1,
		"left_sidebar_wide":256,
		"right_sidebar_wide":256,
		"folders_sidebar_visible":0,
		"folders_sidebar_side":0,
		"folders_sidebar_order":0,
		"folders_sidebar_high":256,
		"preview_visible":0,
		"preview_side":1,
		"preview_order":0,
		"preview_high":256,
		"filters_sidebar_visible":0,
		"filters_sidebar_side":0,
		"filters_sidebar_order":0,
		"filters_sidebar_high":256,
		"bookmarks_sidebar_visible":0,
		"bookmarks_sidebar_side":0,
		"bookmarks_sidebar_order":0,
		"bookmarks_sidebar_high":256,
		"bookmarks_sidebar_expanded":[],
		"findbar_highlight_all":1,
		"menu":1,
		"fullscreen_menu":0,
		"theme":0,
		"status_bar_visible":1,
		"statusbar_view_thumbnail_size":128,
		"zoom":134,
		"invert_layout":0,
		"tab_cursel":0,
		"tabs":
		[
			{
				"is_closed":0,
				"search":"dupe-from:O: dupe:size",
				"match_case":0,
				"match_path":1,
				"match_whole_word":0,
				"match_diacritics":0,
				"match_prefix":0,
				"match_suffix":0,
				"ignore_punctuation":1,
				"ignore_whitespace":1,
				"match_regex":0,
				"filter":"EVERYTHING",
				"sort":"Size",
				"sort_ascending":0,
				"secondary_sort":"",
				"secondary_sort_ascending":1,
				"tertiary_sort":"",
				"tertiary_sort_ascending":1,
				"view":0,
				"thumbnail_size":64,
				"index":0,
				"index_file_list":"",
				"index_etp_server":"",
				"index_link_type":1,
				"sort_mix":0,
				"is_secondary_sort_folders_first":0,
				"omit_results":0,
				"temp_omit_results":0,
				"listview_item_focus":"O:\\LIB\\WIN7-DELL-HomePremium-ISO\\sources\\install.wim",
				"listview_selection":["O:\\LIB\\WIN7-DELL-HomePremium-ISO\\sources\\install.wim"],
				"folders_sidebar_expanded":[],
				"folders_sidebar_item_focus":"",
				"folders_sidebar_selection":[],
				"folders_sidebar_subfolders":0,
				"filelist_slot0":[],
				"filelist_slot1":[],
				"filelist_slot2":[],
				"filelist_slot3":[],
				"filelist_slot4":[],
				"filelist_slot5":[],
				"filelist_slot6":[],
				"filelist_slot7":[],
				"filelist_slot8":[],
				"filelist_slot9":[],
				"columns":
				[
					{
						"name":"Name",
						"width":315
					},
					{
						"name":"Path",
						"width":148
					},
					{
						"name":"Size",
						"width":84
					},
					{
						"name":"Extension",
						"width":36
					},
					{
						"name":"Date Modified",
						"width":112
					}
				]
			},
			{
				"is_closed":0,
				"search":"mov",
				"match_case":0,
				"match_path":1,
				"match_whole_word":0,
				"match_diacritics":0,
				"match_prefix":0,
				"match_suffix":0,
				"ignore_punctuation":1,
				"ignore_whitespace":1,
				"match_regex":0,
				"filter":"EVERYTHING",
				"sort":"Size",
				"sort_ascending":0,
				"secondary_sort":"",
				"secondary_sort_ascending":1,
				"tertiary_sort":"",
				"tertiary_sort_ascending":1,
				"view":0,
				"thumbnail_size":64,
				"index":0,
				"index_file_list":"",
				"index_etp_server":"",
				"index_link_type":1,
				"sort_mix":0,
				"is_secondary_sort_folders_first":0,
				"omit_results":0,
				"temp_omit_results":0,
				"listview_item_focus":"C:\\WLIB\\LeechFTP\\LeechTMP\\removelogo\\RemoveLogoNow (from L)\\{app}\\cz.lan",
				"listview_selection":["C:\\WLIB\\LeechFTP\\LeechTMP\\removelogo\\RemoveLogoNow (from L)\\{app}\\cz.lan"],
				"folders_sidebar_expanded":[],
				"folders_sidebar_item_focus":"",
				"folders_sidebar_selection":[],
				"folders_sidebar_subfolders":0,
				"filelist_slot0":[],
				"filelist_slot1":[],
				"filelist_slot2":[],
				"filelist_slot3":[],
				"filelist_slot4":[],
				"filelist_slot5":[],
				"filelist_slot6":[],
				"filelist_slot7":[],
				"filelist_slot8":[],
				"filelist_slot9":[],
				"columns":
				[
					{
						"name":"Name",
						"width":315
					},
					{
						"name":"Path",
						"width":148
					},
					{
						"name":"Size",
						"width":84
					},
					{
						"name":"Extension",
						"width":36
					},
					{
						"name":"Date Modified",
						"width":112
					}
				]
			},
			{
				"is_closed":0,
				"search":"O:",
				"match_case":0,
				"match_path":1,
				"match_whole_word":0,
				"match_diacritics":0,
				"match_prefix":0,
				"match_suffix":0,
				"ignore_punctuation":1,
				"ignore_whitespace":1,
				"match_regex":0,
				"filter":"EVERYTHING",
				"sort":"Size",
				"sort_ascending":0,
				"secondary_sort":"",
				"secondary_sort_ascending":1,
				"tertiary_sort":"",
				"tertiary_sort_ascending":1,
				"view":0,
				"thumbnail_size":64,
				"index":0,
				"index_file_list":"",
				"index_etp_server":"",
				"index_link_type":1,
				"sort_mix":0,
				"is_secondary_sort_folders_first":0,
				"omit_results":0,
				"temp_omit_results":0,
				"listview_item_focus":"O:\\LIB\\WIN7-DELL-HomePremium-ISO\\sources\\install.wim",
				"listview_selection":["O:\\LIB\\WIN7-DELL-HomePremium-ISO\\sources\\install.wim"],
				"folders_sidebar_expanded":[],
				"folders_sidebar_item_focus":"",
				"folders_sidebar_selection":[],
				"folders_sidebar_subfolders":0,
				"filelist_slot0":[],
				"filelist_slot1":[],
				"filelist_slot2":[],
				"filelist_slot3":[],
				"filelist_slot4":[],
				"filelist_slot5":[],
				"filelist_slot6":[],
				"filelist_slot7":[],
				"filelist_slot8":[],
				"filelist_slot9":[],
				"columns":
				[
					{
						"name":"Name",
						"width":315
					},
					{
						"name":"Path",
						"width":148
					},
					{
						"name":"Size",
						"width":84
					},
					{
						"name":"Extension",
						"width":36
					},
					{
						"name":"Date Modified",
						"width":112
					}
				]
			}
		]
	}
]
void
Developer
Posts: 19839
Joined: Fri Oct 16, 2009 11:31 pm

Re: Closing Session with Alt+F4 does Not Properly Close

Post by void »

Closing a Session with Alt+F4 (or the 'X' close box) does Not Properly Close (Quit) including (at least)
writing out the .db to disk, & updating/retaining History (session.json),
as in, on re-open,
History | Restore Previous Session
, is unavailable (grayed out).
This is expected.
The session is still running.

Alt + F4 (or the close box) closes the window.
Closing the last window doesn't end the session.
Everything is still running in the background.

To restore the recently closed window:
  • From the History menu, under Recently Closed Windows, click your closed window.
The db and session.json is only stored to disk when you exit Everything.
The session is also stored to disk when you change your search. (however, it can only occur once every 15 seconds)

Do you see the expected results if you disable Tools -> Options -> UI -> Run in background?
-When disabled, closing the last window will exit Everything.



What webbrowsers do:
If I have two windows opened.
I close one.
The session is still running.
I open a new window.
Like Everything, History -> Restore session is grayed out.
I can reopen the closed window from History -> Recently closed windows.

If I close the last window, the session closes.

Everything is different when closing the last window.
The session is still running. (if Tools -> Options -> UI -> Run in background is enabled)
This will likely cause confusion.
I will consider a rewrite.
Maybe it can be solved by simply making Restore Previous Session just restore the last closed window...
therube
Posts: 5711
Joined: Thu Sep 03, 2009 6:48 pm

Re: Closing Session with Alt+F4 does Not Properly Close

Post by therube »

The session is still running.
Yes, I saw that (after the fact).
Never realized though.

As it is, I rarely reboot (computer), rarely Quit Everything (which if I did I would do with Alt+File+X), rarely inadvertently hit Alt+F4 nor the 'X' box, so when I did, & when Everything "disappeared", I assumed it had closed (Quit).

So then when I "re-opened" it, it opened to a "new" window (not my last opened window+tabs).

On seeing that, & seeing that I could not restore the Session (i.e., my last opened window+tabs), so I then killed that Instance (such that an "empty window" would not be saved as my session), renamed Session.backup.json to Session.json, & then restarted (which then did successfully restore my last opened window+tabs).


(Reviewing .ini, I see there are any number of 'close' & 'tray' settings, but to me, they all seem like a sesspool.
I'll go into that more, later...)
Post Reply