-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extensions/kde-neon: use platform snap as plug name #3596
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks.
921e3b4 to
6829cb9
Compare
Using the same plug name "kde-frameworks-5-plug" for all providers leads to problems when an application updates its base or changes its default provider because a new framework snap gets published for the same base. In that case, snapd will keep the old framework snap connected and will happily connect the new framework snap in addition to the old one. This breaks applications because they won't find the correct framework snap mounted at $SNAP/kf5. Prevent this by using the same strategy that the gnome extensions use: plug name = content snap name See https://forum.snapcraft.io/t/snap-accumulates-content-interface-connections-to-multiple-platform-snaps/27523/8
6829cb9 to
5b5d7fb
Compare
|
I also removed the manual connection in the spread test. It is a) not required any more because auto-connect has been granted, and b) the plug name is different now, so we'd have to change it anyway. |
Codecov Report
@@ Coverage Diff @@
## master #3596 +/- ##
=======================================
Coverage 91.25% 91.25%
=======================================
Files 278 278
Lines 19375 19375
=======================================
Hits 17680 17680
Misses 1695 1695
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you!
Now that canonical/snapcraft#3596 has been released in snapcraft 6.0.1, drop the prompt that tells users to disconnect the old framework snap. Also drop --enable-experimental-extensions from CI because kde-neon has been declared stable for core20.
Now that canonical/snapcraft#3596 has been released in snapcraft 6.0.1, drop the prompt that tells users to disconnect the old framework snap. Also drop --enable-experimental-extensions from CI because kde-neon has been declared stable for core20.
Now that canonical/snapcraft#3596 has been released in snapcraft 6.0.1, drop the prompt that tells users to disconnect the old framework snap. Also drop --enable-experimental-extensions from CI because kde-neon has been declared stable for core20.
Using the same plug name "kde-frameworks-5-plug"
for all providers leads to problems when an
application updates its base or changes its default
provider because a new framework snap gets published
for the same base.
In that case, snapd will keep the old framework snap
connected and will happily connect the new framework
snap in addition to the old one.
This breaks applications because they won't find the correct
framework snap mounted at $SNAP/kf5.
Prevent this by using the same strategy that the gnome
extensions use: plug name = content snap name
See https://forum.snapcraft.io/t/snap-accumulates-content-interface-connections-to-multiple-platform-snaps/27523/8
./runtests.sh static?./runtests.sh tests/unit/project_loader/extensions?I built a snap (anki-ppd) with this change and everything works as expected. Also CC @jriddell.
I'm not sure about the subsystem prefix; it seemed more complete than just "extensions".