Skip to content

Draft: main/postmarketos-base: Ensure XDG_RUNTIME_DIR is always set

Administrator requested to merge feature/xdg-runtime-dir into master

XDG_RUNTIME_DIR is unset when logging in e.g. via SSH. Setting it allows to start graphical apps on the device via SSH. This MR exports the variable in the default profile.

I tested in Qemu on Phosh and with this change I was able to start e.g. gnome-clocks and gnome-calculator on the device while on SSH (which did not work when the variable was empty/unset).

It did not work with Firefox for me though:

$ firefox 
Error: no DISPLAY environment variable specified

Prefixing the command with either DISPLAY=:0 or MOZ_ENABLE_WAYLAND=1 made Firefox launch. I'm unsure if any of these should be made part of the default profile though.

Closes: #1007 (closed)

Edited by Administrator

Merge request reports

Loading