phyver / GameShell

a game to learn (or teach) how to use standard commands in a Unix shell
GNU General Public License v3.0
2.13k stars 135 forks source link

Replace `xeyes` by something else for MacOS ? #93

Closed Aierbote closed 2 years ago

Aierbote commented 2 years ago
The variable DISPLAY is not defined.
A running X server is required for mission intermediate/04_bg_xeyes/init.sh.
Error: mission 18 is cancelled because some dependencies are not met.

Running on a macOS High Sierra (version 10.13.6) on a MacBook (13-inch, mid 2010)

Correct me if I'm wrong, but I cannot run that because "X server" is an optional feature (paying), right?

phyver commented 2 years ago

That's right. Some missions have their own dependencies, and when those aren't satisfied, the mission is simply skipped. It shouldn't impact the following missions.

For this specific mission, I use a small graphical program you have to launch from the terminal, so you're not missing much. (The aim is to show the difference between COMMAND and COMMAND &.) The "X server" is the most standard way to offer graphical capabilities on Unix systems.

Maybe we should think of a way to introduce the same thing within the terminal, but that is a little artificial.

Photon9 commented 2 years ago

There is an xeyes package available for macOS though I haven't tried getting it to work yet.

Aierbote commented 2 years ago

@Photon9 Have you already tried that? Is it possible to brew install this xeyes?

I'm curious and I might try it aswell

phyver commented 2 years ago

One dependency of xeyes is bound to be Xorg, which might be asking a lot for just this specific mission. I don't use MacOS, but there should be a small graphical app (clock, calendar, game, etc.) that's installed by default on all modern MacOS. xeyes could easily be replaced by one of those. (I just need a way to check there is a graphical session running...)

phyver commented 2 years ago

If anyone has some suggestion about replacements for xeyes on MacOS, feel free to reopen this issue.