mint-fm2 code enhancements suggestions
Posted: Sat Aug 28, 2010 6:11 pm
Hello MintBoxers !
As I migrated from MintFluxbox to Debian Sid + Openbox, I ported mint-fm2 to Openbox.
All was fine until the last version of mint-fm2. The code became too complicated for me, so I decided to roll my own.
After a few days of research, I come back with a few suggestions that, IMHO could benefit the mint-fm2 project.
The code is here.
The keys concepts are:
Thanks for taking time to read, and by the way congrats for all the good work you've all made so far !
As I migrated from MintFluxbox to Debian Sid + Openbox, I ported mint-fm2 to Openbox.
All was fine until the last version of mint-fm2. The code became too complicated for me, so I decided to roll my own.
After a few days of research, I come back with a few suggestions that, IMHO could benefit the mint-fm2 project.
The code is here.
The keys concepts are:
- Use of dpkg triggers: this allows the package using them to specify directories to monitor each time another package is install/removed. This completely removes the need for a menu daemon. See the triggers file and postinst script. Here is a tutorial about dpkg triggers.
- Use the python-xdg library: it is maintained by freedesktop.org and implements most of the specs. No need to reinvent the wheel in bash, and the code to generate the menu is minimal.
- Use the gdm-control commands for the endsession script. Once again this removes the need for the ciao daemon. Example here
Thanks for taking time to read, and by the way congrats for all the good work you've all made so far !