You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public File getDefaultDownloadDirectory() throws IOException {
if (OSUtils.IS_WINDOWS) {
....
}
// For all other operating systems we return the Downloads folder.
return new File(getSystemProperty("user.home"), "Downloads");
}
On Unix systems, this behavior is wrong. Instead, the download directory should be read from "~/.config/user-dirs.dirs":
From FileAccessServiceImpl.java:
On Unix systems, this behavior is wrong. Instead, the download directory should be read from "~/.config/user-dirs.dirs":
This results in the creation of a new directory "Downloads" next to "downloads" on my system.
Alternatively, the download directory should be configurable.
There's also a lib called xdg-java here on Github:
https://github.com/omajid/xdg-java
The text was updated successfully, but these errors were encountered: