Forum › Forums › General › Tips and Tricks › Fix App-select XDG_RUNTIME_DIR Error › Reply To: Fix App-select XDG_RUNTIME_DIR Error
June 8, 2026 at 8:07 am
#206194
Member
One could also make the following extension:
if 'XDG_RUNTIME_DIR' not in os.environ:
# Display a pop-up message Gtk.MessageDialog(..., message_type=Gtk.MessageType.INFO, ...)?
print('\nBang the drum loudly - something is wrong, "XDG_RUNTIME_DIR" not in "os.environ"!\n')
elif os.environ['XDG_RUNTIME_DIR']:
# Proceed as before
else:
# Proceed as before
This would allow not passing the situation (and possible issue) silently.