You’ve probably heard that a pilot accidentally shot a hole in his airplane recently. A pilots’ group blames dangerous security rules and equipment, but others say that the pilot in question had to violate several of the most basic security procedures for this to happen. Most importantly, Only handle the gun when the plane is parked. Here is a video explaining and demonstrating the "security" procedures Federal Flight Deck Officers (armed pilots) must go through. Specifics about all of the FFDO firearm procedures are not available to the public, but the suggestion in this video that the gun must be removed and locked every time the cabin door is opened is apparently not accurate.
Notice that the gun is often pointed directly at the demonstrator during the process. I don’t want to go shooting with this guy.