i have written long explanation but was logged out automatically as per long delay and it's all lost now
.desktop files must appear in writable aufs branch (/mnt/live/memory/changes) to be catch up by 'menu-cache' demon. this can be done in two ways:
- 'installpkg' as it copies
all files into live fs
- 'touch' utility which updates time stamp on a file when module is inserted
(mounted) into live fs and causes that .desktop file appears in /mnt/live/memory/changes/usr/share/application.
i have added extra function to activate which checks if .desktop files exists in a module and touches them. deactivate does the same but removes it from /usr/share/application.
i still see one potential bug:
user boots porteus with changes parameter - > activates a module -> shuts down porteus -> removes xzm from /porteus/modules under other OS -> boots up porteus -> still gets .desktop in /usr/share/applications as it was never removed by deactivate script.
looks like we need to live with these workarounds until aufs matures on 2.6.38 kernel with xz compression for squashfs.
i have tried aufs-utils (didnt play with aubrsync, auchk, auplink - just 'mount.aufs' helper). if you want to make an experiments here they are:
http://www.mediafire.com/file/oce5gddok ... 4-1ftm.xzm
may need to update initrd.xz as well to be 100% sure that all branches are mounted with aufs-utils. tried that already but same bugs exists.
Thanks a lot for your help guys (especially tiger
will release SP1 for BETA tonight so you can test new acitvate/deactivate scripts.
Posted after 2 days 13 hours 37 minutes:
Re: [semi-Solved] LXDE - update ~/.cache/menu/16e*** file
1) Activate vlc.xzm
2) Delete /usr/share/applications/vlc.desktop
3) Deactivate vlc.xzm
4) Activate vlc.xzm
vlc.desktop - doesn't appear in /usr/share/applications anymore (?something's wrong with aufs branches?)
Is it allright?
this time it's not an aufs bug (what a relief!), it's a feature
when you delete a file which belongs to a module inserted into aufs then special file is created in 'rw' aufs branch, example:
what's the purpose of this .wh.cups.desktop file?
it makes this file invisible in the live system even after reboot (in case when you are saving changes with 'changes=' cheatcode).
aufs writable branch has 2 features:
1) let's you add files to the live fs
2) lets you remove files from modules which are creating live fs (it's a 'fake' remove, the files are still inside the modules - you just can't see them)
if you want to make deleted files visible again you need to:
1) copy deleted file back to live fs:
cp /mnt/live/memory/images/002-xorg.xzm/usr/share/applications/cups.desktop /usr/share/applications
now blocking .wh. file in /mnt/live/memory/changes/usr/share/applications/ gets wiped out
2) delete .wh. file manually and then activate module (not recommended)
Please add [Solved] to your thread title if the solution was found.