Mercurial > projects > dwt-linux
comparison dwt/dwthelper/System.d @ 354:59b54fea05d0
Fixes for XPCOM 1.9 and anonymous classes
author | john@andLinux |
---|---|
date | Sun, 14 Dec 2008 02:13:20 -0500 |
parents | 373b48b9eaf0 |
children | ee1dd551f5b1 |
comparison
equal
deleted
inserted
replaced
353:7f3013c93a95 | 354:59b54fea05d0 |
---|---|
156 return defval; | 156 return defval; |
157 } | 157 } |
158 public static String getProperty( String key ){ | 158 public static String getProperty( String key ){ |
159 /* get values for global system keys (environment) */ | 159 /* get values for global system keys (environment) */ |
160 switch( key ) { | 160 switch( key ) { |
161 case "os.name": return Environment.get("OSTYPE"); | 161 // Ubuntu Gutsy:Environment.get for OSTYPE is not working |
162 // Force default to "linux" for now -JJR | |
163 case "os.name": return Environment.get("OSTYPE","linux"); | |
162 case "user.name": return Environment.get("USER"); | 164 case "user.name": return Environment.get("USER"); |
163 case "user.home": return Environment.get("HOME"); | 165 case "user.home": return Environment.get("HOME"); |
164 case "user.dir" : return Environment.get("PWD"); | 166 case "user.dir" : return Environment.get("PWD"); |
165 case "file.separator" : return FileConst.PathSeparatorString ; | 167 case "file.separator" : return FileConst.PathSeparatorString ; |
166 case "file.encoding" : | 168 case "file.encoding" : |