Recently, I answered a question on Reddit about starting a window from an ACPI script. The user wanted to start a Python script, using pygame to display a window to chose which action to do. For this to work, you need to set the DISPLAY variable, it is often said to set the DISPLAY variable. However, the thing which is often forgotten, the XAUTHORITY environment variable must also be set- To do this, I suggested...