Already as a student in Ljubljana, he became involved in a Catholic integralist youth group, organized within the Slovenian Catholic Action.
After the Capitulation of Italy in September 1943, Komar returned to Slovenia, which was then occupied by Nazi Germany.