Improved version of activate_or_run and konsole wrapper