Changeset 6313 for trunk/gli


Ignore:
Timestamp:
2003-12-19T11:36:51+13:00 (20 years ago)
Author:
kjdon
Message:

changed looking in registry to teh start command for windows when there is no file association

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/file/FileAssociationManager.java

    r6260 r6313  
    109109        // we use cmd and start
    110110        if (Utility.isWindows9x()) {
    111         command = "command.com /c start \""+url+"\"";
     111        command = StaticStrings.WIN_9X_OPEN_COMMAND;//"command.com /c start \""+url+"\"";
    112112        } else {
    113         command = "cmd.exe /c start \"\" \""+url+"\"";
    114         }
     113        command = StaticStrings.WIN_OPEN_COMMAND;//"cmd.exe /c start \"\" \""+url+"\"";
     114        }
     115        command = command.replaceAll(FILENAME_ARG, url);
    115116        return command;
    116117    }
     
    180181        if(Utility.isWindows()) {
    181182            ///ystem.err.println("Is Windows");
    182             command = WinRegistry.openCommand(filename);
    183         }
     183            //command = WinRegistry.openCommand(filename);
     184            //try the start command
     185            if (Utility.isWindows9x()) {
     186            command = StaticStrings.WIN_9X_OPEN_COMMAND;
     187            } else {
     188            command = StaticStrings.WIN_OPEN_COMMAND;
     189            }
     190           
     191        }
     192       
    184193        // If we are on a mac, default to using the open program
    185194        else if(Utility.isMac()) {
Note: See TracChangeset for help on using the changeset viewer.