Very very nice.
I especially like how fast it loads compared to the previous version.
However I have one small issue with it:
The menu snapshot function. I would like to have an option to disable this.
I think we should try to avoid writing to the SD card unless really necessary, I'm fine with a black loading screen.
On a modern Linux, any memory not used by applications is used as a disk cache.
This means the data for the menu bitmap isn't written immediately to SD card.
Instead it will be as the launched game/emulator start to use memory or simply after some time has passed, causing noticeable pauses in its execution. ("The evil hiccups of doom")
One solution to this would be to invoke the "sync
" command after dmenu has written all its data and just before launching the new application.
This will force Linux to write all cached data immediately, allowing applications to run smoothly.
Edit: Looks like there is a C version of sync: http://linux.die.net/man/2/sync
I think this is equivalent to running the sync command. (But not entirely sure)