-
-
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
"open directory" for attached file does not work #8679
Comments
Hi just asking some additional information, snap or deb? @LyzardKing You worked on this, if I remember correctly, any further ideas? |
Ah, I now remember that we changed this, not sure how this would need to be adapted jabref/src/main/java/org/jabref/gui/desktop/os/Linux.java Lines 89 to 102 in f13ada0
|
The last time I looked at it there was no way to port java.awt.desktop to using more modern systems to launch programs/file managers/etc, not easily at least. |
@wujastyk out of curiosity, what is the output of running Even in edge cases the default xdg-open command should run fine anyway |
I get
|
If this command works (the path must be absolute) we could replace all the custom parts with this.
|
Reveal folder works for me, open terminal here not, because i dont have xterm installed, but konsole.
|
@LyzardKing I'm using Nemo, the file manager of Cinnamon. |
Strange. It should work with the default (running |
FYI: I am using Nemo and cinnamon too, and I do not have this issue: "open folder" opens nemo with the proper directory. JabRef 5.6--2022-04-20--f220575 |
Using Linux Mint default file explorer JabRef 5.7--2022-05-16--6a2332f Having this issue as well. |
I will mark this issue as a good first issue. Maybe somebody can try what you propose here and open a pull request. If it does not work, we can close the pull request. |
actually on further look it's not a good solution. |
I opened the PR to add Nemo and Caja in the list of file managers. It still doesn't solve the snap and flatpak. |
Relevant documentation for possibly implementing/fixing this for Flatpak:
not sure but could be that flatpak has not implemented it yet. See this issue |
Unfortunately #8831 did not fix the issue for me. :/ I just tried the newest development version as Linux portable I am on Linux Mint 20.3 (Cinnamon 64-bit) with Nemo JabRef 5.7--2022-05-19--4baf2a1 |
Being as curious as I am, I stumpled upon this guide: https://linuxhint.com/installing_nemo_file_manager_linux/ When I checked on my system which mimetypes it is being used for, it showed some other file managers than Nemo attached to the same mimetype, if i understand it correctly. So maybe for this type of action Nemo is not prioritized? I am afraid of completely removing the other ones from this mimetype and making Nemo the defacto default, because it might break other things. Not sure if I understand what is going on, but maybe it helps somebody solving this riddle. |
Same problem for
|
Could the Related discussion: https://unix.stackexchange.com/questions/364997/open-a-directory-in-the-default-file-manager-and-select-a-file |
Btw.: JabRef 5.7--2022-05-23--117bb1c on Linux Mint 20.3 with Nemo.
and
|
JabRef 5.7--2022-05-23--117bb1c "Open file F4 "now works. "Open folder ctrl+sht+O" does not. |
@ThiloteE xdg-open is set to be used as a fallback. |
Ok, I think I found the problem!
Please remove the https://linuxcommandlibrary.com/man/nemo.html Here up to date commands for nemo:
I did some tests and using the command |
Maybe it was only working in an older version of Linux Mint:
|
Flatpak compatible solution: https://github.com/flatpak/xdg-desktop-portal Stumpled upon it while reading https://gitlab.freedesktop.org/xdg/xdg-specs/-/issues/64 |
Hello everybody. Christoph and me tried another method that should fix this issue. The new method also works for Linux Mint Cinnamon (Nemo file manager), but we have not tested the other distributions. Would you mind testing the PR 8853? It can be downloaded here: https://builds.jabref.org/pull/8853/merge/ |
Yes! It worked for me. JabRef 5.7-PullRequest8853.81--2022-05-26--7636804 Kernel: 5.13.0-44-generic x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.2.7 Thank you all! |
JabRef version
Latest development branch build (please note build date below)
Operating system
GNU / Linux
Details on version and operating system
JabRef 5.6--2022-04-15--f13ada0 Linux 5.13.0-39-generic amd64 Java 17.0.2 JavaFX 18+12
Checked with the latest development build
Steps to reproduce the behaviour
More or less the same as #8093, but in a different context.
Appendix
No response
The text was updated successfully, but these errors were encountered: