Adding an option to the PupSave command?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Adding an option to the PupSave command?

Post by Jasper »

Hi all

There is one thing that always forget to ask about and that is, when I shut down and I am presented with the dialogue box to "Save" & "No Save", I would like another option to be included.

This would be the ability to "Cancel" and return to my desktop.

Many a time, I have decided to shut down and then realised I had forgotten to do something.

Is this easily enough to incorporate?

Fossapup64-95 OS

User avatar
rockedge
Site Admin
Posts: 6539
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2748 times
Been thanked: 2620 times
Contact:

Re: Adding an option to the PupSave command?

Post by rockedge »

We'll have to look at what stage the save or not save prompt is presented. Might be a "cancel" option could be added easily if the shutdown process has not closed some things.

Definitely a good idea though and will be looked at.

User avatar
Jasper
Posts: 2067
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 854 times
Been thanked: 480 times

Re: Adding an option to the PupSave command?

Post by Jasper »

@rockedge

It's the final blue screen which gives you the options.

I'm guessing everything by that time is being killed in the background.

gyrog
Posts: 644
Joined: Thu Oct 01, 2020 8:17 am
Location: Australia
Has thanked: 16 times
Been thanked: 231 times
Contact:

Re: Adding an option to the PupSave command?

Post by gyrog »

Looking at the rc.shutdown script, the default screen is presented far too late.
Many processes have been killed already.

However there is support for a variable $RAMDISK_SAVE_SESSION, that appears to be set outside rc.shutdown, probably before rc.shutdown.
Whatever it is that is supposed to write the file containing the $RAMDISK_SAVE_SESSION might be running in an environment that would support "Cancel".

I guess that's still a maybe.

Post Reply

Return to “Users”