Skip to content
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

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eaglersdeveloper
Copy link

"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
Author

@apachelogger, will you merge this PR?

@hsitter
Copy link
Owner

hsitter commented Jan 22, 2019

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