# Pastebin zk6NdIwe /* We deduce the X11 socket from the display name, then use * SO_PEERCRED to determine the X11 server process, ask for * the controlling tty of that and if it's a VC then we know * the seat and the virtual terminal. Sounds ugly, is only * semi-ugly. */