1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-08-13 17:03:45 -04:00

* add additional user roots if user.home is not set properly

This commit is contained in:
Reinhard Pointner 2014-08-10 10:07:58 +00:00
parent 943c6db865
commit 5647aa962e

View File

@ -202,6 +202,14 @@ public class ReleaseInfo {
volumes.addAll(getChildren(root, FOLDERS));
}
// add additional user roots if user.home is not set properly
String username = System.getProperty("user.name");
if (username != null && username.length() > 0) {
volumes.add(new File("/Users/" + username));
volumes.add(new File("/home/" + username));
volumes.add(new File("/media/" + username));
}
// user-specific media roots
for (File root : getMediaRoots()) {
if (root.isDirectory()) {