Hi, I was automating something and noticed that yad --version does not work without a graphical session:
(yad:3382795): Gtk-WARNING **: 02:51:51.781: cannot open display:
It should not require a graphical session to print its version to stdout.
This is trivial to repro using env -i $(type -p yad) --version as no graphical session stuff functions without env vars.
Running the program headless in this way is also required in packaging as a smoke tests to verify that the resulting binary can be executed and is the expected version for instance.
Hi, I was automating something and noticed that
yad --version
does not work without a graphical session:It should not require a graphical session to print its version to stdout.
This is trivial to repro using
env -i $(type -p yad) --version
as no graphical session stuff functions without env vars.Running the program headless in this way is also required in packaging as a smoke tests to verify that the resulting binary can be executed and is the expected version for instance.