Skip to content

Commit

Permalink
Add disconnect hook
Browse files Browse the repository at this point in the history
change plug name to browser-extension
  • Loading branch information
LyzardKing committed Oct 11, 2019
1 parent 4f645d1 commit e6e8c52
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
File renamed without changes.
7 changes: 7 additions & 0 deletions snap/hooks/disconnect-plug-browser-extension
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

if [ ! -f /var/lib/snapd/hostfs/usr/lib/mozilla/native-messaging-hosts/org.jabref.jabref.json ]; then
exit 0
elif grep --quiet '"path": "/snap' /var/lib/snapd/hostfs/usr/lib/mozilla/native-messaging-hosts/org.jabref.jabref.json; then
rm /var/lib/snapd/hostfs/usr/lib/mozilla/native-messaging-hosts/org.jabref.jabref.json
fi
2 changes: 1 addition & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ architectures:
- build-on: amd64

plugs:
jabfox-integration:
browser-extension:
interface: system-files
read:
- /var/lib/snapd/hostfs/usr/lib/mozilla/native-messaging-hosts
Expand Down

0 comments on commit e6e8c52

Please sign in to comment.