You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Terminal and Atom cannot be opened when strict confinement is enabled #95
@zypA13510 this suggests to me that there's some permission missing that we need to request - does anything from this list stand out to you about launching processes?
"Open in terminal" does not detect git installation, and gives an error when selecting "open without git"
This check is running which git to see if git is available on your PATH. What's interesting about this is I was able to run which which to find itself, but git would error:
I see that process.env.PATH (that should be inherited when you run which) does contain /usr/bin, which is where it should be:
And when you try to continue on we try to use the default shell, which uses the same technique, we can't find any, which is this message appears:
And lastly, we do the same checks for the editor integration on Linux, so if we fix that we'll be able to support this completely. I'm just puzzled whether some sort of isolation is to blame here for hiding the details from the app.
changed the title [-]Terminal and Atom cannot be opened from Snap package (strict confinement)[/-][+]Terminal and Atom cannot be opened when strict confinement is enabled[/+]on Nov 22, 2018
FYI, I have built a version with all known interfaces enabled (except content and dbus, both of which requires another snap to provide a slot), and connected them to slots the snap core provides. This issue still exists, so does #98.
After a bit of Googling, I've also come across a question that could be related to this issue: /usr/bin/fold got permission denied but /usr/bin/fmt is working fine? The consensus seems to be that we shouldn't rely on /usr/bin but ship it with the snap if the app requires the binary.
I also wondered why Atom snap doesn't have such issue. Turns out that it isn't using strict confinement: snapcrafters/atom/master/snap/snapcraft.yaml#L10. Maybe we need to solve this by switching desktop back to classic confinement?
With the help of the Snapcraft team, I've now been able to publicize the app again on the Snapcraft store now the enclosures are migrated. It is recommended to install the beta channel currently if you are working from a fresh install.
For existing installs the edge channel will remain using the strict enclosure for the moment, and refreshing to the latest version there will ask you to install the beta channel, which is using the classic enclosure and requires a manual upgrade:
Activity
zypA13510 commentedon Nov 21, 2018
Using 1.5.0-linux3 snap package installed with
--classic --dangerousswitch does not have this issue.shiftkey commentedon Nov 21, 2018
@zypA13510 this suggests to me that there's some permission missing that we need to request - does anything from this list stand out to you about launching processes?
shiftkey commentedon Nov 22, 2018
This check is running
which gitto see ifgitis available on your PATH. What's interesting about this is I was able to runwhich whichto find itself, butgitwould error:I see that
process.env.PATH(that should be inherited when you runwhich) does contain/usr/bin, which is where it should be:And when you try to continue on we try to use the default shell, which uses the same technique, we can't find any, which is this message appears:
And lastly, we do the same checks for the editor integration on Linux, so if we fix that we'll be able to support this completely. I'm just puzzled whether some sort of isolation is to blame here for hiding the details from the app.
[-]Terminal and Atom cannot be opened from Snap package (strict confinement)[/-][+]Terminal and Atom cannot be opened when strict confinement is enabled[/+]zypA13510 commentedon Nov 24, 2018
FYI, I have built a version with all known interfaces enabled (except
contentanddbus, both of which requires another snap to provide a slot), and connected them to slots the snap core provides. This issue still exists, so does #98.After a bit of Googling, I've also come across a question that could be related to this issue: /usr/bin/fold got permission denied but /usr/bin/fmt is working fine? The consensus seems to be that we shouldn't rely on
/usr/binbut ship it with the snap if the app requires the binary.I also wondered why Atom snap doesn't have such issue. Turns out that it isn't using strict confinement: snapcrafters/atom/master/snap/snapcraft.yaml#L10. Maybe we need to solve this by switching desktop back to classic confinement?
Btw, I'm no expert on snap, so I may be wrong.
zypA13510 commentedon Dec 5, 2018
VSCode is also using classic confinement: Microsoft/vscode/master/resources/linux/snap/snapcraft.yaml#L10
@shiftkey may I open a PR to switch it back to classic confinement?
shiftkey commentedon Apr 7, 2019
With the help of the Snapcraft team, I've now been able to publicize the app again on the Snapcraft store now the enclosures are migrated. It is recommended to install the
betachannel currently if you are working from a fresh install.For existing installs the
edgechannel will remain using thestrictenclosure for the moment, and refreshing to the latest version there will ask you to install thebetachannel, which is using theclassicenclosure and requires a manual upgrade: