Changeset 28617
- Timestamp:
- 01/18/09 21:36:45 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
platform/firefox/vimperator-launcher/vimperator.cmd
r23075 r28617 36 36 37 37 // profile name is the first argument. 38 // if not specified, use default profile and .vimperatorrc in root directory.38 // if not specified, use default profile and vimperatorrc in root directory. 39 39 var args = WScript.Arguments; 40 40 var profileName = args.length ? args.Item(0) : ''; 41 41 var wshFSO = WScript.CreateObject('Scripting.FileSystemObject'); 42 var vimpHome = commonDir + wshFSO.FolderExists(commonDir + profileName) ? profileName : '';42 var vimpHome = commonDir + (wshFSO.FolderExists(commonDir + profileName) ? profileName : ''); 43 43 44 44 // environment variable MOZ_NO_REMOTE is bool to multiple launch for Firefox … … 47 47 for (var i=0, max=args.length ; i<max ; ++i) { 48 48 var arg = args.Item(i); 49 if (noRemoteFlag = arg === '-no-remote') break; 49 if (arg === '-no-remote') { 50 noRemoteFlag = 'true'; 51 break; 52 } 50 53 } 51 54 52 55 // set environment variables 53 envVar.Item(' VIMPERATOR_HOME') = vimpHome;56 envVar.Item('HOME') = vimpHome; 54 57 if (noRemoteFlag) envVar.Item('MOZ_NO_REMOTE') = 1; 55 58 … … 57 60 var command = '"' + (envVar.Item('ProgramFiles') || 'C:\\Program Files') 58 61 + '\\Mozilla Firefox\\firefox.exe"'; 59 //if (noRemoteFlag) command += ' -no-remote';60 62 if (profileName) command += ' -P "' + profileName + '"'; 61 63
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)