Options to save or not upon shutdown

Post here if you are a new Porteus member and you're looking for some help.
stuff79
White ninja
White ninja
Posts: 7
Joined: 18 May 2023, 08:59
Distribution: 5.0

Options to save or not upon shutdown

Post#1 by stuff79 » 18 May 2023, 13:59

When using the boot cheatcode like "changes=EXIT:/somewhere/savefile.dat", I wonder if there is a option to let user choose whether to save the changes or not upon shutdown.

The pros of this option is that user could choose to discard all the changes made in the current session run.

Any advice how to do that ?
Thanks.

User avatar
Ed_P
Contributor
Contributor
Posts: 8367
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Options to save or not upon shutdown

Post#2 by Ed_P » 18 May 2023, 14:26

stuff79 wrote:
18 May 2023, 13:59
I wonder if there is a option to let user choose whether to save the changes or not upon shutdown.
Yup :good: There is a 3 second delay and prompt when shutting down to save or not save changes. :happy62:
Ed

stuff79
White ninja
White ninja
Posts: 7
Joined: 18 May 2023, 08:59
Distribution: 5.0

Options to save or not upon shutdown

Post#3 by stuff79 » 18 May 2023, 15:27

Ed_P wrote:
18 May 2023, 14:26
stuff79 wrote:
18 May 2023, 13:59
I wonder if there is a option to let user choose whether to save the changes or not upon shutdown.
Yup :good: There is a 3 second delay and prompt when shutting down to save or not save changes. :happy62:
I'm new to Porteus, not awaring that there is 3 sec delay in the console.

Thanks.

User avatar
Ed_P
Contributor
Contributor
Posts: 8367
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Options to save or not upon shutdown

Post#4 by Ed_P » 18 May 2023, 17:36

stuff79 wrote:
18 May 2023, 15:27
I'm new to Porteus
We all were at some point. ;)

The prompt also shows you how full your save.dat file is and allows you to exit without saving the save.dat file if it is overflowing. :good:
Ed

User avatar
Rava
Contributor
Contributor
Posts: 5401
Joined: 11 Jan 2011, 02:46
Distribution: XFCE 5.01 x86_64 + 4.0 i586
Location: Forests of Germany

Options to save or not upon shutdown

Post#5 by Rava » 18 May 2023, 20:00

Ed_P wrote:
18 May 2023, 14:26
There is a 3 second delay and prompt when shutting down to save or not save changes.
3 Seconds is very short, can that be changed?

E.g. to 10 seconds or 5 seconds?
Cheers!
Yours Rava

User avatar
Ed_P
Contributor
Contributor
Posts: 8367
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 5.01 ISO
Location: Western NY, USA

Options to save or not upon shutdown

Post#6 by Ed_P » 18 May 2023, 21:38

Rava wrote:
18 May 2023, 20:00
3 Seconds is very short, can that be changed?
If the file is too full an extra is 5 seconds it added and is in the rc.local_shutdown script. In that the decision is binary not too much time is needed.
Ed

stuff79
White ninja
White ninja
Posts: 7
Joined: 18 May 2023, 08:59
Distribution: 5.0

Options to save or not upon shutdown

Post#7 by stuff79 » 26 May 2023, 03:05

The 3 sec time out period can be changed by modifying the /mnt/live/cleanup. :D

Post Reply