Tweaks for "save" icon in lockdown modes
EasyOS has two lockdown modes. There is "Copy session to RAM" and
"Copy session to RAM & disable drives". Both have a "save" icon on
the desktop, so the user can at any time choose to save the session to
the boot media.
One problem was that when boot in lockdown mode, the 'init' script in
the initrd edits /root/Choices/ROX-Filer/PuppyPin, replacing the
"update" icon with a "save" icon.
The problem with that is that is assumes the label "update" is
English, which it won't necessarily be in the French or German, or any
other language, build. I have fixed that, and also now "save" is
translated in /usr/share/sss/initrd_strings.
In the previous post, I reported that "save" did not save a file that
I had created. I had created it in /root, however, the script that
performs the save, /usr/sbin/lockdown-save, is very stingy with what it
saves from /root.
It is an old Puppy habit, treating /root as the place to save files.
In EasyOS, I try to get all apps to default "File Open..." and "File
save..." to be in the /home folder, but there are still some that insist
on /root -- they ignore the XDG* variables that ask them to use /home.
So I have edited /usr/sbin/lockdown-save, and any files that are not
hidden files, get saved. Note, selected hidden files do also get saved,
that code was already there.
Tags: easy