trigger handler on SIGALRM, fix DESKTOP flags