site  contact  subhomenews

Container session save fix

November 24, 2024 — BarryK

Easy Containers sure is overdue for some TLC! The guys are testing Daedalus running in a container, in Scarthgap, and reporting that changes to wallpaper and icons are not remembered.

It used to work, but when I introduced "run in RAM" instead of direct save to the storage media, container saving got broken. It has been broken for years.

In the Daedalus container, the first time that it is started, scripts 'daedalus.run-once-base' and 'daedalus.run-once-top' are executed, then 'daedalus.run-once-base-flag' and 'daedalus.run-once-top-flag' get created, so at future startups of the container, those "run-once" scripts won't rerun.

When Daedalus container is running, here is content of the '.control' folder:

img1

What has gone wrong when running in RAM, is that those "-flag" files don't get saved. So the "run-once" scripts execute at every startup, which resets desktop icons and wallpaper to the defaults.

I did a quick test, changed the wallpaper, rebooted, and the change is remembered! Github commit:

https://github.com/bkauler/woofq/commit/6ed3f023dd45b8823b166c6b35712cdff666dde1

This is very good news.   

Tags: easy