Ignore:
Timestamp:
Sep 19, 2006, 8:16:23 PM (19 years ago)
Author:
RBRi
Message:

fixes for beta3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NewView/MainForm.pas

    r32 r38  
    833833  ACLDialogs,
    834834  ACLString,
     835  RunProgramUnit,
     836  StringUtilsUnit,
    835837
    836838  // Components
     
    55085510  URL: string;
    55095511  LinkDetails: string;
     5512  ProgramInfo : TSerializableStringList;
    55105513Begin
    55115514  if StrLeft( LinkString, 4 ) = 'note' then
     
    55175520  else if StrLeft( LinkString, 7 ) = 'program' then
    55185521  begin
    5519     ProgramLink := StrUnDoubleQuote( StrRightFrom( LinkString, 9 ) );
    5520     // todo: unescape quotes
    5521     ProgramPath := ExtractNextValue( ProgramLink, ' ' );
    5522     Exec( ProgramPath,
    5523           ProgramLink );
    5524     SetStatus( 'Launched '
    5525                + ProgramPath );
     5522    ProgramInfo := TSerializableStringList.create;
     5523    ProgramInfo.readValuesFromSerializedString(StrRightFrom( LinkString, 9 ));
     5524    ProgramPath := ProgramInfo.get(0);
     5525    ProgramLink := ProgramInfo.get(1);
     5526    TSerializableStringList.destroy;
     5527    // call LaunchProgram here to inherit the environment
     5528    LaunchProgram(ProgramPath, ProgramLink, '');
     5529    SetStatus( 'Launched ' + ProgramPath );
    55265530  end
    55275531  else if StrLeft( LinkString, 3 ) = 'url' then
Note: See TracChangeset for help on using the changeset viewer.