Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version parameter requires a graphical session #277

Open
Atemu opened this issue Sep 3, 2024 · 0 comments
Open

version parameter requires a graphical session #277

Atemu opened this issue Sep 3, 2024 · 0 comments

Comments

@Atemu
Copy link

Atemu commented Sep 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant