-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDefault.java
More file actions
42 lines (32 loc) · 1.05 KB
/
Copy pathDefault.java
File metadata and controls
42 lines (32 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package org.freedesktop.platforms;
import java.io.File;
import org.freedesktop.Platform;
public class Default extends Platform {
@Override
public String getCacheHome() {
return environment.get("HOME") + File.separator + ".cache";
}
@Override
public String getConfigDirs() {
return File.separator + "etc" + File.separator + "xdg";
}
@Override
public String getConfigHome() {
return environment.get("HOME") + File.separator + ".config";
}
@Override
public String getDataDirs() {
String XDG_DATA_DIRS_DEFAULT = File.separator + "usr" + File.separator + "local" + File.separator + "share" + File.separator;
XDG_DATA_DIRS_DEFAULT = XDG_DATA_DIRS_DEFAULT + File.pathSeparator;
XDG_DATA_DIRS_DEFAULT = XDG_DATA_DIRS_DEFAULT + File.separator + "usr" + File.separator + "share" + File.separator;
return XDG_DATA_DIRS_DEFAULT;
}
@Override
public String getDataHome() {
return environment.get("HOME") + File.separator + ".local" + File.separator + "share";
}
@Override
public String getRuntimeDir() {
return null;
}
}