-
-
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
Respect OS language at NativeDesktop#getDefaultFileChooserDirectory #9837
Conversation
Tracked down the implementation:
|
This should be tested by someone on Linux. I also enabled the debugger, so please check |
// Make use of xdg-user-dirs | ||
// See https://www.freedesktop.org/wiki/Software/xdg-user-dirs/ for details | ||
try { | ||
Process process = new ProcessBuilder("xdg-user-dirs", "DOCUMENTS").start(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the script is called xdg-user-dir
without the s. Its a mess i know. The ""Toolkit"" is called -dirs
but the script that you actually run is called -dir
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested it anyways by copying the script with the modified name into my path, and it successfully puts /home/<USER>/Dokumente
into the "Main file directory" field.
* upstream/main: (101 commits) Fixed tests by reverting development artifact Fixed checkstyle Fixed test remove empty lines move to entry editor prefs Reduced use of Globals for fileUpdateMonitor, removed unused themeManager vars reformulate Update src/main/java/org/jabref/logic/importer/fileformat/BibtexParser.java fix checkstyle Modernize tests at BibtexParserTest Removed ImportFormatReader from Globals at all Fixes some JavaDoc errors Add newline Really fix order Fix CHANGELOG.md order Fix checkstyle Update CHANGELOG.md move to entry editor editor tab add javadoc checkstyle ... # Conflicts: # CHANGELOG.md # src/main/java/org/jabref/gui/desktop/JabRefDesktop.java
Fixes #8010 - especially #8010 (comment)
In Germany, the default "documents" folder is
~/Dokumente
. Either we mirror all translations in JabRef - or we useFileSystemView.getFileSystemView().getDefaultDirectory().getPath()
. (Source: https://stackoverflow.com/a/32914568/873282)Follow-up to #9835: This PR is now using a branch in JabRef's main repo so that a) there are builds and b) other devs can easily update the code, too.
Compulsory checks