Skip to content

Change Snap confinement to "classic", add hooks that add/remove session - #2

Open
eaglersdeveloper wants to merge 1 commit into
hsitter:masterfrom
eaglersdeveloper:session-in-snap
Open

Change Snap confinement to "classic", add hooks that add/remove session#2
eaglersdeveloper wants to merge 1 commit into
hsitter:masterfrom
eaglersdeveloper:session-in-snap

Conversation

@eaglersdeveloper

Copy link
Copy Markdown

"A hook is an executable that runs within a snap’s confined environment when a certain action occurs" ‒ Snapcraft Docs

I added scripts that create symlink to session file (plasma.desktop) in /usr/share/xsessions/ when installing or updating, and remove symlink when uninstalling.

I change confinement to "classic" for access to root for create symlink.

In GNOME Software users see this inscription:

2018-12-17 21-40-01

Thanks to AlanGriffiths/egmde-snap

@eaglersdeveloper

Copy link
Copy Markdown
Author

@apachelogger, will you merge this PR?

@hsitter

hsitter commented Jan 22, 2019

Copy link
Copy Markdown
Owner

The snap (currently) is intentionally not classic. The idea is to have it eventually fully confined even so as to not be able to break anything. The better way IMO is to fix snapd to allow creating xsession files in some form or fashion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants