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

Use systemd to unmount gocryptfs folders on logout #12

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

Conversation

FredericLespez
Copy link

When user sessions are handled by systemd, we use it to unmount gocryptfs folders at logout (and avoid adding manually a GDM hook).

If systemd handles user sessions, a systemd user service will be created to mount gocryptfs folders when you start the service and unmount them when you stop the service.

Then through systemd dependencies to graphical-session.target, we start this service on login and stop it on logout in order to mount/unmount gocryptfs folders automatically.

If systemd doesn't handle user session, the old mechanism (GNOME's autostart) is used.

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.

1 participant