3 ms·
It's probably because the env from the host system is sandboxed. You should explicitly set the DISPLAY somehow when you run the snap
by rany_ 3y ago
It's probably because the env from the host system is sandboxed. You should explicitly set the DISPLAY somehow when you run the snap
- amelius 3y agoThat's strange because xeyes (not a snap app) worked just fine, so $DISPLAY was certainly set.
- sph 3y agoThat's because xeyes is not sandboxed, snaps are. They don't automatically inherit the environment.
- chasil 3y agoWould it be as simple as:? DISPLAY="$DISPLAY" gimp
- sph 3y agoI don't run Ubuntu so I wouldn't know, but the other sandbox system I know, Docker, has its own syntax to set environment variables. It's worth having a look at the man pages. DISPLAY="$DISPLAY" gimp This is a no-op. It sets DISPLAY in the current env with the value of DISPLAY in the current env. Processes spawned from the shell already inherit the current environment (unless they're running in a separate namespace, of course)