Changeset 1720 for trunk/dll/init.c


Ignore:
Timestamp:
Feb 16, 2014, 8:47:30 PM (11 years ago)
Author:
Gregg Young
Message:

Add "#" command line switch to workaround problem with blank command shell started from fm2 after fm2 has been started with stdout and stderr redirected to a file. Fixes it by using the system environment instead of fm2's when starting command shells.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/init.c

    r1713 r1720  
    117117  09 Feb 14 GKY Modified wipeallf to allow suppression of the readonly warning on delete
    118118                of temporary files
     119  16 Feb 14 GKY Add "#" command line switch to workaround problem with blank command shell
     120                started from fm2 after fm2 has been started with stdout and stderr
     121                redirected to a file.
    119122
    120123***********************************************************************/
     
    235238BOOL fReminimize;
    236239BOOL fWantFirstTimeInit;
     240BOOL fUseShellEnv;
    237241//BOOL fDrivetoSkip[26];
    238242HPOINTER hptrApp;
     
    11591163    fAutoAddDirs = fUseNewViewer = fDataToFore = fDataShowDrives = fDataMin =
    11601164    fSplitStatus = fDragndropDlg = fQuickArcFind = fKeepCmdLine =
    1161     fMoreButtons = fDrivebar = fCollapseFirst = fSwitchTree = fWarnReadOnly =
     1165    fMoreButtons = fDrivebar = fCollapseFirst = fSwitchTree =
    11621166    fSwitchTreeExpand = fNoSearch = fCustomFileDlg = fOtherHelp =
    11631167    fSaveMiniCmds = fUserComboBox = fFM2Deletes = fConfirmTarget =
     
    16841688        strcpy(profile, &argv[x][1]);
    16851689    }
     1690    if (*argv[x] == '#' && !argv[x][1])
     1691      fUseShellEnv = TRUE;
    16861692  }
    16871693
Note: See TracChangeset for help on using the changeset viewer.