File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -52,15 +52,11 @@ cp -r %{_sourcedir}APPLICATION_DIRECTORY/* %{buildroot}APPLICATION_DIRECTORY
52
52
%(echo APPLICATION_DIRECTORY | sed -e " s|\(^/[^/]\{1,\}\).*$|\1|" )
53
53
54
54
%post
55
- install -D -m0755 /opt/jabref/lib/native-messaging-host/firefox/org.jabref.jabref.json /usr/lib/mozilla/native-messaging-hosts/org.jabref.jabref.json
56
- install -D -m0755 /opt/jabref/lib/native-messaging-host/chromium/org.jabref.jabref.json /etc/chromium/native-messaging-hosts/org.jabref.jabref.json
57
- install -D -m0755 /opt/jabref/lib/native-messaging-host/chromium/org.jabref.jabref.json /etc/opt/chrome/native-messaging-hosts/org.jabref.jabref.json
55
+ install -D -m0755 /opt/jabref/lib/org.jabref.jabref.json /usr/lib/mozilla/native-messaging-hosts/org.jabref.jabref.json
58
56
DESKTOP_COMMANDS_INSTALL
59
57
60
58
%preun
61
- for NATIVE_MESSAGING_JSON in " /usr/lib/mozilla/native-messaging-hosts/org.jabref.jabref.json" \
62
- " /etc/chromium/native-messaging-hosts/org.jabref.jabref.json" \
63
- " /etc/opt/chrome/native-messaging-hosts/org.jabref.jabref.json" ; do
59
+ for NATIVE_MESSAGING_JSON in " /usr/lib/mozilla/native-messaging-hosts/org.jabref.jabref.json" ; do
64
60
if [ -e $NATIVE_MESSAGING_JSON ] && grep --quiet ' "path": "/opt' $NATIVE_MESSAGING_JSON ; then
65
61
echo $NATIVE_MESSAGING_JSON
66
62
fi
You can’t perform that action at this time.
0 commit comments