Skip to content

Commit e6e8c52

Browse files
committed
Add disconnect hook
change plug name to browser-extension
1 parent 4f645d1 commit e6e8c52

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
if [ ! -f /var/lib/snapd/hostfs/usr/lib/mozilla/native-messaging-hosts/org.jabref.jabref.json ]; then
4+
exit 0
5+
elif grep --quiet '"path": "/snap' /var/lib/snapd/hostfs/usr/lib/mozilla/native-messaging-hosts/org.jabref.jabref.json; then
6+
rm /var/lib/snapd/hostfs/usr/lib/mozilla/native-messaging-hosts/org.jabref.jabref.json
7+
fi

snap/snapcraft.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ architectures:
1313
- build-on: amd64
1414

1515
plugs:
16-
jabfox-integration:
16+
browser-extension:
1717
interface: system-files
1818
read:
1919
- /var/lib/snapd/hostfs/usr/lib/mozilla/native-messaging-hosts

0 commit comments

Comments
 (0)