File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/processing/app/platform Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,7 @@ tasks.register("generateSnapConfiguration"){
238
238
- x11
239
239
- network
240
240
- opengl
241
+ - home
241
242
242
243
parts:
243
244
processing:
Original file line number Diff line number Diff line change 33
33
34
34
35
35
public class LinuxPlatform extends DefaultPlatform {
36
- // Switched to use ~ as the home directory for compatibility with snap
37
- String homeDir = "~" ;
36
+ String homeDir ;
38
37
39
38
40
39
public void initBase (Base base ) {
@@ -107,6 +106,10 @@ public File getSettingsFolder() throws Exception {
107
106
configHome = null ; // don't use non-existent folder
108
107
}
109
108
}
109
+ String snapUserCommon = System .getenv ("SNAP_USER_COMMON" );
110
+ if (snapUserCommon != null && !snapUserCommon .isBlank ()) {
111
+ configHome = new File (snapUserCommon );
112
+ }
110
113
// If not set properly, use the default
111
114
if (configHome == null ) {
112
115
configHome = new File (getHomeDir (), ".config" );
You can’t perform that action at this time.
0 commit comments