Bug 392769 - Installation of classic Snaps stops immediately
Summary: Installation of classic Snaps stops immediately
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: Snap Backend (show other bugs)
Version: 5.12.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
: 393641 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-04-05 18:43 UTC by Marcus Harrison
Modified: 2018-04-29 15:50 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Harrison 2018-04-05 18:43:02 UTC
Discover is able to install Snaps using current confinement but not Snaps using classic confinement. The snaps tested were OBS Studio (current) and Skype (classic/legacy).

On the command line, `snap` installs `obs-studio` immediately, while with the `skype` snap it halts to print a warning message about legacy confinement before forcing the user to type the command again with the `--classic` flag.

I believe the correct behaviour for Discover should be somewhere between showing a dialogue box that warns the user of the lack of sandboxing with classic snaps, and not showing classic snaps at all.
Comment 1 Aleix Pol 2018-04-06 18:22:31 UTC
Git commit fa278f29ff9a5e6fea814e18574de3c271dba7b8 by Aleix Pol.
Committed on 06/04/2018 at 18:21.
Pushed by apol into branch 'master'.

Snap: make it possible to install "Classic" apps

Classic, which is an euphemism for unsafe, applications were not
supported so far. Now it will ask the user for confirmation to install.

M  +2    -2    libdiscover/backends/SnapBackend/SnapBackend.cpp
M  +32   -9    libdiscover/backends/SnapBackend/SnapTransaction.cpp
M  +6    -2    libdiscover/backends/SnapBackend/SnapTransaction.h

https://commits.kde.org/discover/fa278f29ff9a5e6fea814e18574de3c271dba7b8
Comment 2 Aleix Pol 2018-04-06 18:23:36 UTC
I could not reproduce the obs-studio issue. It installs fine here. If you could investigate a bit further I'd appreciate it very much.

WRT skype, now it allows to install it if the user accepts the lack of confinement.
Comment 3 Marcus Harrison 2018-04-06 18:38:05 UTC
Sorry, I meant to say that obs-studio installs fine in Discover, and that this only affects classic snaps.

I'll test this as soon as I can (I'll try building Discover and, failing that, I'll let you know as soon as a binary version is available for KDE Neon).

Thanks.
Comment 4 Aleix Pol 2018-04-07 00:09:38 UTC
Ah okay, then it's fixed in master (i.e. 5.13). :)
Comment 5 Patrick Silva 2018-04-29 15:50:41 UTC
*** Bug 393641 has been marked as a duplicate of this bug. ***