forked from canonical/snapd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
interfaces/desktop: allow snaps to provide a desktop slot, granting a…
…ccess to system fonts and xdg-desktop-portal (canonical#10753) * Mount system fonts via app desktop slot * interfaces: update desktop tests to match changes to interface * interfaces: note that desktop interface allows app slot implementations * tests: add desktop slot to test-snapd-policy-app-provider-core * interfaces: deny connection of desktop interface by default on Ubuntu Core. * tests: add a spread test for providing a desktop slot on Ubuntu Core * interfaces: add support for xdg-desktop-portal to app-provided desktop slot In this setup, we expect xdg-desktop-portal and xdg-document-portal to be running outside of confinement (as snap userd does), with the user interface backend services running in the context of the slot snap. * interfaces: add a comment about the assumption that a snap providing a desktop slot uses the boot base snap as its base. * Fix documents portal not being launched It uses a different bus name from the desktop portal. * interfaces: fix up permanent slot rules for desktop interface * interfaces: update desktop slot declaration to only allow app snaps to provide the slot under the minimal install check * interfaces: add access to files necessary for xdg-user-dirs to the desktop slot * interfaces: add file access covering what the ubuntu-desktop-session:shell-config-files system-files plug granted * interfaces: add a comment noting the unusual base declaration for desktop * interfaces: make desktopPermanentSlotAppArmor a constant --------- Co-authored-by: Marcus Tomlinson <[email protected]> Co-authored-by: Robert Ancell <[email protected]> Co-authored-by: Ken VanDine <[email protected]>
- Loading branch information
1 parent
1437ce2
commit c535590
Showing
6 changed files
with
227 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.