2 ms·
That's strange because xeyes (not a snap app) worked just fine, so $DISPLAY was certainly set.
by amelius 3y ago
That'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)