Amazing! Good Job!
I added this little tool in the "Camera Lens Launcher". So the standard camera app don't start. When you open the lenscover a popup-menu appears where you can select "Flashlight". When you close the lens cover the flashlight-app stops automatically - I love this behaviour!!!
(http://maemo.org/downloads/product/Maemo5/cl-launcher/) citation: Using this launcher you can select a different application than pre-installed 'Camera' application to run automatically when you open the lens cover or simply to show application selector pop-up window.
To configure this launcher go to the 'Settings: Camera Lens Launcher'.
WARNING: Startup of 'Camera' application might be slower using this launcher.

Thank you!