-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Capitalize path properly #5883
Capitalize path properly #5883
Conversation
Thanks for your PR! As noted by @LyzardKing in JabRef/JabRef-Browser-Extension#127 (comment), the deb and rpm packages do install JabRef in the folder |
I see, thanks! I didn't think of that the PKBUILD might have different path capitalization compared to the rpm and deb, but it makes sense. I will close this PR then. @j0hannes I took a look at your PKBUILD and I believe that these are the changes needed to be made, not sure if they would affect something else though: diff --git a/PKGBUILD-jabref b/PKGBUILD-jabref-lower-case-path
index 9c39d2c..85489cf 100644
--- a/PKGBUILD-jabref
+++ b/PKGBUILD-jabref-lower-case-path
@@ -36,11 +36,12 @@ pkgver() {
package() {
cd ${srcdir}
- install -Dm755 JabRef/bin/JabRef ${pkgdir}/opt/JabRef/bin/JabRef
+ install -Dm755 JabRef/bin/JabRef ${pkgdir}/opt/jabref/bin/JabRef
find JabRef/lib -type f -exec install -Dm644 "{}" "${pkgdir}/opt/{}" \;
- chmod +x ${pkgdir}/opt/JabRef/lib/runtime/bin/*
- chmod +x ${pkgdir}/opt/JabRef/lib/runtime/lib/jexec
- chmod +x ${pkgdir}/opt/JabRef/lib/runtime/lib/jspawnhelper
+ chmod +x ${pkgdir}/opt/jabref/lib/runtime/bin/*
+ chmod +x ${pkgdir}/opt/jabref/lib/runtime/lib/jexec
+ chmod +x ${pkgdir}/opt/jabref/lib/runtime/lib/jspawnhelper
+ chmod +x ${pkgdir}/opt/jabref/lib/jabrefHost.py
install -Dm755 jabref.sh ${pkgdir}/usr/bin/jabref
install -Dm755 JabRef.svg ${pkgdir}/usr/share/pixmaps/JabRef.svg
install -Dm644 JabRef.desktop ${pkgdir}/usr/share/applications/JabRef.desktop
|
The camelcase JabRef path is taken from the .tar.gz file, the changes proposed by @joelostblom unfortunately break the PKGBUILD. If I rename the directory JabRef to jabref, JabRef won't run because of this error:
|
Yes |
I guess one of the |
Thanks for the reply @j0hannes, I just tried either renaming the archived folder or using This is the full diff for the changes I made to your PKGBUILD when using diff --git a/PKGBUILD b/PKGBUILD
index 8f07fb5..4f19285 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -35,13 +35,14 @@ pkgver() {
}
package() {
+ mv JabRef jabref
cd ${srcdir}
- install -Dm755 JabRef/bin/JabRef ${pkgdir}/opt/JabRef/bin/JabRef
- find JabRef/lib -type f -exec install -Dm644 "{}" "${pkgdir}/opt/{}" \;
- chmod +x ${pkgdir}/opt/JabRef/lib/runtime/bin/*
- chmod +x ${pkgdir}/opt/JabRef/lib/runtime/lib/jexec
- chmod +x ${pkgdir}/opt/JabRef/lib/runtime/lib/jspawnhelper
- chmod +x ${pkgdir}/opt/JabRef/lib/jabrefHost.py
+ install -Dm755 jabref/bin/JabRef ${pkgdir}/opt/jabref/bin/JabRef
+ find jabref/lib -type f -exec install -Dm644 "{}" "${pkgdir}/opt/{}" \;
+ chmod +x ${pkgdir}/opt/jabref/lib/runtime/bin/*
+ chmod +x ${pkgdir}/opt/jabref/lib/runtime/lib/jexec
+ chmod +x ${pkgdir}/opt/jabref/lib/runtime/lib/jspawnhelper
+ chmod +x ${pkgdir}/opt/jabref/lib/jabrefHost.py
install -Dm755 jabref.sh ${pkgdir}/usr/bin/jabref
install -Dm755 JabRef.svg ${pkgdir}/usr/share/pixmaps/JabRef.svg
install -Dm644 JabRef.desktop ${pkgdir}/usr/share/applications/JabRef.desktop I also made these changes to the launcher script. diff --git a/jabref.sh b/jabref.sh
index edd6746..7bd7912 100755
--- a/jabref.sh
+++ b/jabref.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-exec /opt/JabRef/bin/JabRef $@
+exec /opt/jabref/bin/JabRef $@ |
I removed the package completely, so the folder was removed. If I use JabRef it works, with jabref I get that error. The error is reproducible. |
That's exactly what I tried and what failed for me. |
I installed jabref-latest via pacman in Arch and then installed the JabFox extension through Mozilla's addon website. The addon would get stuck on
Send to JabRef...
and in Firefox in the JabFox preferences, I would seeError: Attempt to postMessage on disconnected port
.I had to make the change indicated in this PR and set executable bit of
/opt/JabRef/lib/jabrefHost.py
manually (I noticed this is already the case in this repo, but it was not in the file installed on my system).Related to JabRef/JabRef-Browser-Extension#127, JabRef/JabRef-Browser-Extension#110, and JabRef/JabRef-Browser-Extension#75.