-
-
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 folder" opens file instead of folder #9607
Comments
Cannot reproduce on
I would like to ask you to test JabRef with Ubuntu 22.04 or even better 22.10 and report back. |
@evanhorn @ThiloteE I tried it on my Ubuntu machine and the same happened for me. The I will try to find out why did this happen and I'll try to fix it. I'm using Ubuntu 20.04. |
This isn't a big deal, just a minor annoyance, as I don't often need to access the file's folder. However, I didn't see that anyone else had identified this issue (I did see the conversation from last year), so I wanted to pass it along. I am glad to see that someone else is experiencing the issue, so it's not just me! It does seem to be related to Ubuntu 20.04 in some way, which surprises me, as ctrl-o opens the “Open library” dialog in Nautilus, so something is able to open Nautilus—it just seems weird to me that it opens the file instead. If there is any more information that I can provide, please let me know. |
Am on Fedora37 with JabRef 5.10-PullRequest9604.122--2023-02-07--1452eb6 cannot confirm. That is: |
Note to myself: Linux Mint 21.10 uses Nemo as its file manager. |
I can reproduce this behaviour on Ubuntu 22.04: JabRef 5.10--2023-02-21--563f52f |
Same here on Ubuntu 23.04 JabRef 5.9--2023-01-08--76253f1a7 |
@DanielBiskup Can you try the latest version? |
I tried the latest version and still experience the same issue, but I have upgraded to Ubuntu 22.04. JabRef 5.10--2023-05-08--68b72e0 |
1. System informationJust ran into the same issue with
The System is an Open Suse 15.3 desktop, using the XFCE desktop environment. 2. WorkaroundI was able to solve it for my system by configuring File > Preferences > External Programs > Use custom file browser to the value
3. ObservationsAdditionally I observed, that when opening a PDF file or opening a folder with the custom file browser, a corresponding event will be logged when executing with
but when "Use custom file browser" is disabled, nothing will be logged, and the PDF file will open. Possibly related: On my system, the "open terminal here" wasn't working. That part I solved by setting "use custom terminal emulator" to |
The terminal issue will hopefully be fixed by #9954 |
@kbauer What does the environment variable DESKTOP_SESSION print? jabref/src/main/java/org/jabref/gui/desktop/os/Linux.java Lines 99 to 115 in 2a11af0
I think the problem is that we give the path to the file and not the folder when we use xdg open as fallback!
Regarding the terminal error message: |
My system has no file Maybe |
fixes #9607 add thunar + xfce check
@DanielBiskup can you please if this version opens the folder correctly? https://builds.jabref.org/pull/9966/merge/ |
* Fix opening folder instead of file under linux fixes #9607 add thunar + xfce check * fix checkstyle
JabRef version
5.9 (latest release)
Operating system
GNU / Linux
Details on version and operating system
Ubuntu 20.04 with GNOME Shell 3.36.9
Checked with the latest development build
Steps to reproduce the behaviour
Open folder
from context menu (or ctrl-shift-O)Instead of a file browser, the attached file is opened as though
Open file
was selected.Note that this behavior also occurs when using the "File" field in the "General" tab.
Appendix
Originally observed with:
Confirmed with development branch:
The text was updated successfully, but these errors were encountered: