Currently in gui-daemon/xside.c (only other holder of the lock): g->inter_appviewer_lock_fd = open("/var/run/qubes/appviewer.lock", O_RDWR | O_CREAT, 0666); ... /* ignore possible errors */ fchmod(g->inter_appviewer_lock_fd, 0666);