[LINUX] launcher: Remove the code duplicate from the `on_switch_command` handler