4 ms·
Sometimes I sympathize with the snap developers to be honest
by ladyanita22 3y ago
Sometimes I sympathize with the snap developers to be honest
- amelius 3y agoReally? Yesterday I tried to open GIMP over a remote SSH connection to quickly edit something. Turned out that it couldn't open the display because snap doesn't work over remote connections ... Imho, the least they can do is get the basics right. Of course, it's Canonical's fault for pushing something that is not ready for the real world.
- rany_ 3y agoIt'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)
- rlpb 3y ago> because snap doesn't work over remote connections Nor does Wayland, which is the default in Ubuntu now.
- raverbashing 3y agoHappy to be proven wrong, but I really don't think Gimp would be usable over X/SSH in anything slower than local LAN. VNC or something similar might be a better choice
- amelius 3y agoFwiw, I was trying to do this over LAN. In fact to a headless machine in the same office. This kind of basic thing should just work. I use VNC all the time, but sometimes it is just more convenient to use a remote X connection.
- deleted 3y ago[deleted]
- hnfong 3y agoIt was 20 years ago, I tried running GIMP over remote X on a 100base-T LAN. It was pretty much un-useable. Granted modern day Gigabit networks might have made it more palatable, but I suspect with all the modern UI toolkit assumptions about the X server being on the same machine, the end result is that it will still be worse than an optimized VNC. As a comparison, windows remote desktop on the same network was pretty snappy at the time.
- amelius 3y agoVery true, but there is no excuse for prioritizing performance over correctness.
- loloquwowndueo 3y agoUm the L in LAN stands for “Local”. Sorry I’m from the department of redundancy department just conducting an inspection here.
- raverbashing 3y agoTrue, but actually I wanted to mean that if you're out of the 1st router it might be too slow already (especially for something like GIMP)
- yjftsjthsd-h 3y agoWe can sympathize with the problem they want to solve without agreeing with their proposed solution.
- amelius 3y agoYes if they'd do this inside a research lab far away from regular users.
- hedora 3y agoI wonder how long it will take for people to claim X11 doesn’t support remote displays (in the same way they claim it doesn’t support high DPI displays).