The simplest solution would be to have an option in the settigns menu to choose whatever or not you want to open the camera app when you slid open the lens cover. You can still activate the camera by clicking the camera button. Having a menu is still nicer, but more complicated to implement...