Start with an empty gun - nothing in the chamber and no magazine inserted. Rack the slide to cock it and put any manual safety to the safe position. Carry it that way whenever you feel comfortable to be basically unarmed. When you feel the need to “arm” it with a loaded magazine, verify it did not fire on an empty chamber. If it has an exposed hammer, then it can be a simple visual check. If it is a striker, then you need someone other than me to advise how to check it (I don’t know how to verify an uncocked striker other than pointing in a safe direction and pulling the trigger).
After a few days, weeks, whatever it takes, you can demonstrate to yourself it is not going to fire on its own as long as you make sure the trigger does not get pulled.
