diff options
| author | sommerfeld <sommerfeld@sommerfeld.dev> | 2026-09-17 15:05:37 +0100 |
|---|---|---|
| committer | sommerfeld <sommerfeld@sommerfeld.dev> | 2026-09-17 15:05:37 +0100 |
| commit | f9e25d7e30205756088e7dd330b8070fb5195ae9 (patch) | |
| tree | f5da3f7975e90a50c437e4c00748ee2ddf2867c8 /canonical | |
| parent | 2f97417d16224ca1f79b2fe41e70b8d7ddc0ab7d (diff) | |
| download | dotfiles-f9e25d7e30205756088e7dd330b8070fb5195ae9.tar.gz dotfiles-f9e25d7e30205756088e7dd330b8070fb5195ae9.tar.bz2 dotfiles-f9e25d7e30205756088e7dd330b8070fb5195ae9.zip | |
Permit the Mattermost Snap to use GNOME Keyring
Diffstat (limited to 'canonical')
| -rw-r--r-- | canonical/systemd/dotfiles-mattermost-keyring.path | 8 | ||||
| -rw-r--r-- | canonical/systemd/dotfiles-mattermost-keyring.service | 12 |
2 files changed, 20 insertions, 0 deletions
diff --git a/canonical/systemd/dotfiles-mattermost-keyring.path b/canonical/systemd/dotfiles-mattermost-keyring.path new file mode 100644 index 0000000..6d3f852 --- /dev/null +++ b/canonical/systemd/dotfiles-mattermost-keyring.path @@ -0,0 +1,8 @@ +[Unit] +Description=Watch the Mattermost Snap AppArmor profile + +[Path] +PathChanged=/var/lib/snapd/apparmor/profiles/snap.mattermost-desktop.mattermost-desktop + +[Install] +WantedBy=multi-user.target diff --git a/canonical/systemd/dotfiles-mattermost-keyring.service b/canonical/systemd/dotfiles-mattermost-keyring.service new file mode 100644 index 0000000..fd75f86 --- /dev/null +++ b/canonical/systemd/dotfiles-mattermost-keyring.service @@ -0,0 +1,12 @@ +[Unit] +Description=Allow Mattermost Snap to use GNOME Keyring +After=snapd.apparmor.service snapd.service apparmor.service +Before=display-manager.service +ConditionPathExists=/var/lib/snapd/apparmor/profiles/snap.mattermost-desktop.mattermost-desktop + +[Service] +Type=oneshot +ExecStart=/usr/bin/python3 /usr/local/lib/dotfiles/mattermost_keyring.py + +[Install] +WantedBy=multi-user.target |
