atom icon indicating copy to clipboard operation
atom copied to clipboard

Snap issue solved by installing .deb

Open hollowdoor opened this issue 4 years ago • 8 comments

I have an issue for Atom that only effects a snap install, or just me (I'm not sure). But the problem is resolved by using the official .deb instead. https://github.com/atom/atom/issues/20937

hollowdoor avatar Jun 16 '20 16:06 hollowdoor

I have the same problem on both my computers running the snap version on Ubuntu 20.04 x64. It happened after upgrading Atom to 1.48.0.

Starting Atom from the terminal instead of from a launcher seems to be a workaround.

JonnyB247 avatar Jun 16 '20 19:06 JonnyB247

Yes running atom from terminal does avoid this snap-issue. Good to know. Thanks @JonnyB247 for sharing.

Danfro avatar Jun 16 '20 20:06 Danfro

The problem is described here: https://github.com/atom/atom/issues/20937#issuecomment-645233952

hollowdoor avatar Jun 17 '20 20:06 hollowdoor

Same issue on 20.04 here after I started using the Snap yesterday to avoid having to manually download the .deb from the Atom website every time there's a new version. For now I've had to switch back to using the .deb.

pwaring avatar Jun 18 '20 09:06 pwaring

as a quick hack edit /var/lib/snapd/desktop/applications/atom_atom.desktop and nuke the "ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT=false /usr/bin/atom" bit

lokal-profil avatar Jun 18 '20 12:06 lokal-profil

Cool. Thanks for that hack. Does the job for now.

Danfro avatar Jun 18 '20 15:06 Danfro

I think the line should look like this:

Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/atom_atom.desktop ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT=false /snap/bin/atom %F

Because ATOM_DISABLE_SHELLING_OUT_FOR_ENVIRONMENT=false is from upstream, it should probably be preserved.

Looking at the git history for this project, it seems like snapcraftctl build was added just a few days ago. Maybe that's what messes up the Exec= line?

diwic avatar Jun 19 '20 03:06 diwic

Same kind of limitation happens with #20 (broken with snap, works with deb)

valerauko avatar Nov 29 '20 06:11 valerauko