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

detect_screen() for "install.sh -c GUI" ? #10781

Open
chlohr opened this issue Jul 24, 2024 · 0 comments
Open

detect_screen() for "install.sh -c GUI" ? #10781

chlohr opened this issue Jul 24, 2024 · 0 comments

Comments

@chlohr
Copy link

chlohr commented Jul 24, 2024

Hello,
Does "install.sh -c GUI" do what it is supposed to do?
I'm surprised by the detect_screen() function.

if ! [ "$(type -t DISPLAY)" ]; then

DISPLAY is usually an environment variable mandatory for X11, not a shell command.
So, why testing it with " if ! [ "$(type -t DISPLAY)" ]; then ..." and not " if [ -z "$DISPLAY" ]; then ... " ?
Have I missed something?

Best regards
Christophe

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