I prefer a config file with paths of folders and files
(otherwise changes-exit.conf wouldn't be saved).
- advanced gui for editing changes-exit.conf file: expandable root tree with checkboxes ABCDE for paths (+some predefined settings):
A - changes will be saved in changes-$date.xzm, old changes-$date.xzm will be moved to Trash (gvfs-trash) while shutting down (only for little, config files) - easy recovery
B - changes will be copied to rootcopy (only for little, config files, overwritten files could be moved to Trash (gvfs-trash) before "over"writing
C - changes will be saved in changes.dat or changes directory
D - changes will be saved via magic changes (need paths)
E - changes will be saved via symlinks (available only for ~/Desktop, ~/Downloads, maybe ~/.cache/...). For example '/home/guest/Desktop' -> /mnt/(ntfs-or-fat-disk)/work/mystuff'/home/guest/Desktop'
Needed parameters in changes-exit.conf:
1. Where is rootcopy:
2. Where to set and search target for symlinks:
3. If none key is pressed while exiting:
choose "save" or "discard" changes
4. Wait time for decision of press key
Right click menu in File manager: Enable saving changes in this directory (or copy to rootcopy)
Some paths users want to save (changes-exit.conf) for xfce4, l are:
- Code: Select all
# Folders listed in this config file will be saved during reboot and shutdown when 'changes=EXIT:' cheatcode is used.
# Folders starting with '!' are omitted. This is useful if you want to save whole folder except for particular subfolder(s).
# An example is inclued in default config below: Porteus will save whole /var folder except for /var/run and /var/tmp subfolders.
# Other example: "!/home/guest/.mozilla/firefox/c3pp43bg.default/Cache" will skip saving of Firefox caches from guest account.
# Thanks to Rava for suggesting implementation of '!' exceptions.
# Folders and files starting with '+' are copied to $COPYDEST while running dump-settings. This is useful if you want to save some files to rootcopy.
# System folders:
# Symlinks (last in paths) to large, important or frequently changed folders
# Directories that contain symlinks mixed with files or folders
# Symlinks inside paths, if used nothing is saved (it crashes script) during reboot/shutdown:
# share, xfce4 are for example symlinks