To me, the major elements in this shooter’s life and environment are (1) Islam, (2) a self hatred of a bisexual whose father and religion forbid any such feelings, (3) a life of barely suppressed anger at those around him and the country he lived in, (4) an idolized desire to live in a pure Islamic culture.
Ban guns and only muslims working as security guards for the government will have guns.