Mercurial > projects > dwt-linux
comparison dwt/dwthelper/System.d @ 333:8235a17d9255
Continued progress on Mozilla.d
author | John Reimer <terminal.node@gmail.com> |
---|---|
date | Sun, 19 Oct 2008 21:18:43 -0700 |
parents | 77fa7f3ab37e |
children | a4b331f75790 |
comparison
equal
deleted
inserted
replaced
332:9e715c0a8376 | 333:8235a17d9255 |
---|---|
159 if (key[0..3] == "dwt") { | 159 if (key[0..3] == "dwt") { |
160 return ((p = key in localProperties) != null) ? *p : null; | 160 return ((p = key in localProperties) != null) ? *p : null; |
161 /* else get values for global system keys (environment) */ | 161 /* else get values for global system keys (environment) */ |
162 } else { | 162 } else { |
163 switch( key ){ | 163 switch( key ){ |
164 case "os.name": return "linux"; | 164 case "os.name": return tango.sys.Environment.get("OSTYPE"); |
165 case "user.name": return ""; | 165 case "user.name": return tango.sys.Environment.get("USER"); |
166 case "user.home": return ""; | 166 case "user.home": return tango.sys.Environment.get("HOME"); |
167 case "user.dir" : return ""; | 167 case "user.dir" : return tango.sys.Environment.get("PWD"); |
168 case "file.separator" : return FileConst.PathSeparatorString ; | 168 case "file.separator" : return FileConst.PathSeparatorString ; |
169 case "file.encoding" : return | |
169 default: return null; | 170 default: return null; |
170 } | 171 } |
171 } | 172 } |
172 } | 173 } |
173 | 174 |