Special situation where settings don't get saved.

Bugs and issues.
Post Reply
Message
Author
Primus
Posts: 17
Joined: 18.07.2022, 18:26

Special situation where settings don't get saved.

#1 Post by Primus » 18.07.2022, 21:37

To understand the problem, I shall first state what I need :
1. I don't want FC to close but always get minimized to the system tray.
2. I need FC to open the exactly same tabs when it was last used/closed.

To make this happen, these are the settings I do :
Under "General" category :
1. I select the option "Minimize to system tray
2. Handle closing as minimization

Under View -> Folder Tabs -> Tabs Management
3. Uncheck "Close all not locked tabs when program ends"
4. Uncheck "Close all tabs with UNC path when program ends"

Under "General" category :
5. Settings : Check "Auto save settings -on exit"

Now this is what happens :
1. FC can be exited only if one right clicks on the FC System Tray Icon and then selects exit [due to setting 1 & 2]
2. Since FC will not be closed and minimized to the system tray, generally the user forgets to exit FC.
3. Hence the user just shuts down the system, without exiting FC.
4. Consequently, since FC was not explicitly exited before windows is shut down, FC GET KILLED (not closed) and so, THE FC SETTINGS ARE NOT SAVED [setting 5]
5. Hence when the system is re-started, the previously open tabs are now NOT OPENED [As per the setting 3 & 4]

Desired Behavior
1. Even if FC was not explicitly closed, the settings should be saved and when re-started the same previously opened tabs should be opened.

How to solve the problem
1. When the kill signal is received form Windows, the FC settings should be saved OR
2. FC settings should be saved whenever the FC Window loses focus OR
3. Save FC settings every 5 minutes OR
4. Provide FC Pop-up to save settings when windows is shutdown.

horst.epp
Posts: 460
Joined: 15.11.2008, 20:18

Re: Special situation where settings don't get saved.

#2 Post by horst.epp » 19.07.2022, 15:26

None of your suggestion are good.
The numbers 2 and 3 are even dangerous
because there may be changes I made but they are not yet finished.
So unwanted settings may be saved destroying the current working setting.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3296)
Everything Version 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.67
FreeCommander XE 2024 Build 905 64-bit donor

Marek
Author
Author
Posts: 3973
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: Special situation where settings don't get saved.

#3 Post by Marek » 19.07.2022, 17:05

4. Consequently, since FC was not explicitly exited before windows is shut down, FC GET KILLED (not closed) and so, THE FC SETTINGS ARE NOT SAVED [setting 5]
I have tested it again with the current release 872 (on Windows 10) and it works fine. The settings are saved.
What is your program and Windows version?

Primus
Posts: 17
Joined: 18.07.2022, 18:26

Re: Special situation where settings don't get saved.

#4 Post by Primus » 19.07.2022, 18:14

I use Windows7 32 and also 64 bit on separate systems.
I've checked that the settings don't get saved if the utility is running in memory (shown on system tray) and the windows is shut down. Consequently the settings and open tab info don't get saved.

Primus
Posts: 17
Joined: 18.07.2022, 18:26

Re: Special situation where settings don't get saved.

#5 Post by Primus » 19.07.2022, 18:25

horst.epp wrote: 19.07.2022, 15:26 None of your suggestion are good.
Oh ! is it :?:
But as per Marek, my first suggestion is how FC is behaving on Windows 10 :lol:

Primus
Posts: 17
Joined: 18.07.2022, 18:26

Re: Special situation where settings don't get saved.

#6 Post by Primus » 19.07.2022, 18:26

Marek wrote: 19.07.2022, 17:05
4. Consequently, since FC was not explicitly exited before windows is shut down, FC GET KILLED (not closed) and so, THE FC SETTINGS ARE NOT SAVED [setting 5]
I have tested it again with the current release 872 (on Windows 10) and it works fine. The settings are saved.
What is your program and Windows version?
I use Windows7 32 and also 64 bit on separate systems.
I use FC XE 2022, Portable, Build 861, 32 bit.
I've checked that the settings don't get saved if the utility is running in memory (shown on system tray) and the windows is shut down. Consequently the settings and open tab info don't get saved.

horst.epp
Posts: 460
Joined: 15.11.2008, 20:18

Re: Special situation where settings don't get saved.

#7 Post by horst.epp » 19.07.2022, 20:02

Primus wrote: 19.07.2022, 18:25
horst.epp wrote: 19.07.2022, 15:26 None of your suggestion are good.
Oh ! is it :?:
But as per Marek, my first suggestion is how FC is behaving on Windows 10 :lol:
Not everything implemented means it was a god idea and has no disadvantages.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3296)
Everything Version 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.67
FreeCommander XE 2024 Build 905 64-bit donor

Primus
Posts: 17
Joined: 18.07.2022, 18:26

Re: Special situation where settings don't get saved.

#8 Post by Primus » 20.07.2022, 03:25

horst.epp wrote: 19.07.2022, 20:02
Primus wrote: 19.07.2022, 18:25
horst.epp wrote: 19.07.2022, 15:26 None of your suggestion are good.
Oh ! is it :?:
But as per Marek, my first suggestion is how FC is behaving on Windows 10 :lol:
Not everything implemented means it was a god idea and has no disadvantages.
So if you have a better idea, then do contribute to this good work by suggesting it & clearly stating why it is better than the others. It helps to better FC.
But, if you don't have a better idea or a solution, then the existing implementation is obviously the best. In that case, your best contribution could be silence !
As the old saying goes : Rather than cursing the dark light a candle !

horst.epp
Posts: 460
Joined: 15.11.2008, 20:18

Re: Special situation where settings don't get saved.

#9 Post by horst.epp » 20.07.2022, 11:29

I never run into such problems with any of my file managers including FC.
I always save settings manual and not by any automatic function.
So if a crash appears nothing bad happens and all is as saved last time.
Also I can of course restore settings from the past for any of my tools.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3296)
Everything Version 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.67
FreeCommander XE 2024 Build 905 64-bit donor

Primus
Posts: 17
Joined: 18.07.2022, 18:26

Re: Special situation where settings don't get saved.

#10 Post by Primus » 20.07.2022, 18:30

horst.epp wrote: 20.07.2022, 11:29 I never run into such problems with any of my file managers including FC.
I always save settings manual and not by any automatic function.
So if a crash appears nothing bad happens and all is as saved last time.
Also I can of course restore settings from the past for any of my tools.
OK, looks like you didn't fully understand the problem. And now I see why you said those things above :) . So let me do the favor of explaining.
I agree with what you've said here above. It's simple to save settings when changes are made to it. That's what all will do by naturally.
Open tabs (for different path locations and drives) of the last session is something one would like to see when FC is launched. That means when FC is launched, I'd like to see the same open tabs of my previous session.
FC saves this info in it's settings data file. That means, the FC settings have to be saved before Windows shuts down.
If one remembers to save settings before shutting down Windows, the tab positions are saved and so the issue will not arise. But most people will not remember to save the settings of FC before shutting down windows and hence the open tab positions are lost. That is because the FC process gets KILLED (not gracefully exited) in the course of Windows shut down
Now if FC is exited, then settings are saved. But since it'd be minimized and shown and just shown in the system tray (main window hidden), it doesn't get gracefully exited, but rather the FC process gets killed in the course of Windows shut down. Hence the settings are not saved and so the tab positions don't get saved too.
Hence the generic solution I'd think would be, to have the settings automatically get saved just before Windows shuts down.
Any alternate solution that can solve the problem is also OK.

Primus
Posts: 17
Joined: 18.07.2022, 18:26

Re: Special situation where settings don't get saved.

#11 Post by Primus » 21.07.2022, 03:22

Hello Marek,
With the above elaborate discussion, I'd think the issue should be clear to you. Could you please confirm that ?

Now the question that naturally arises is, if something's working well on Windows10 the same should work for Windows7 both 32 and 64 bit, unless it's really a platform dependent issue.

As I said above, since I use FC XE 2022, Portable, Build 861 (latest available) 32 bit, on both Windows7 32 and also 64 bit, could you please confirm that, the FC release I use, has the code that fixes this issue ?
If yes, then we need to check why something that works with Windows10 doesn't work with Windows7.
If No, then we know what's the root cause of the issue and we know a issue exists and needs to be fixed.

Marek
Author
Author
Posts: 3973
Joined: 10.04.2006, 09:48
Location: Germany
Contact:

Re: Special situation where settings don't get saved.

#12 Post by Marek » 21.07.2022, 22:19

Build 861 32 works fine on Windows 10 and fail on Windows 7.

User avatar
Forez
Posts: 1312
Joined: 30.01.2016, 12:05
Location: In front of a PC monitor

Re: Special situation where settings don't get saved.

#13 Post by Forez » 22.07.2022, 00:12

horst.epp wrote: 20.07.2022, 11:29 [...]
I always save settings manual and not by any automatic function.
So if a crash appears nothing bad happens and all is as saved last time.
Also I can of course restore settings from the past for any of my tools.
And I like programs which perform auto-save of settings- but to another consecutive file , a different one that which is used for manual saving

I had to include FC INI files in my backup software, so that they get copied every time start Windows; so that if I forgot to save them the last time and something bad happens, I know I can always try and look in [automatic] backups for the last [most likely working A-OK] settigs

Primus
Posts: 17
Joined: 18.07.2022, 18:26

Re: Special situation where settings don't get saved.

#14 Post by Primus » 22.07.2022, 11:00

Marek wrote: 21.07.2022, 22:19 Build 861 32 works fine on Windows 10 and fail on Windows 7.
Hello Marek,
One more possible way of solving this issue is, save ONLY the open tab position(s) info, when FC loses focus OR
Save the ONLY the tab position(s) when a tab position changes. That is :
1. Add a tab
2. Remove a tab
3. Tab path changed

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 31 guests