Mercurial > projects > dwt-linux
diff dwt/browser/AppFileLocProvider.d @ 346:2e591eb01162
Browser Package now compiles (phase 2 complete)
author | John Reimer <terminal.node@gmail.com> |
---|---|
date | Wed, 29 Oct 2008 20:06:08 -0700 |
parents | 8198e6052012 |
children | 9a4d7706df52 |
line wrap: on
line diff
--- a/dwt/browser/AppFileLocProvider.d Tue Oct 28 22:07:01 2008 -0700 +++ b/dwt/browser/AppFileLocProvider.d Wed Oct 29 20:06:08 2008 -0700 @@ -39,16 +39,21 @@ String[] pluginDirs; bool isXULRunner; - static final String SEPARATOR_OS = System.getProperty ("file.separator"); //$NON-NLS-1$ + static String SEPARATOR_OS; static final String CHROME_DIR = "chrome"; //$NON-NLS-1$ static final String COMPONENTS_DIR = "components"; //$NON-NLS-1$ static final String HISTORY_FILE = "history.dat"; //$NON-NLS-1$ static final String LOCALSTORE_FILE = "localstore.rdf"; //$NON-NLS-1$ static final String MIMETYPES_FILE = "mimeTypes.rdf"; //$NON-NLS-1$ static final String PLUGINS_DIR = "plugins"; //$NON-NLS-1$ - static final String USER_PLUGINS_DIR = ".mozilla" ~ SEPARATOR_OS ~ "plugins"; //$NON-NLS-1$ //$NON-NLS-2$ + static String USER_PLUGINS_DIR; static final String PREFERENCES_FILE = "prefs.js"; //$NON-NLS-1$ - + +static this () { + SEPARATOR_OS = System.getProperty ("file.separator"); + USER_PLUGINS_DIR = ".mozilla" ~ SEPARATOR_OS ~ "plugins"; +} + this (String path) { mozillaPath = path ~ SEPARATOR_OS; }