anchor.diff:    EditorOps: TEditorOps;
   
   var
  +  AppDir_Home: string;
     AppDir_Settings: string;
     AppDir_SettingsDefault: string;
     AppDir_Py: string;
  
positive.code: begin
    Result:= AFilename;
    if SBeginsWith(Result, '~'+DirectorySeparator) then
      Result:= _GetHomeDir+Copy(Result, 3, MaxInt);
  end;
  
  
  procedure InitDirs;
  var
    S: string;
  begin
    OpDirExe:= ExtractFileDir(ParamStrUTF8(0));
    OpDirPrecopy:= GetDirPrecopy;
    OpDirLocal:= OpDirExe;
  
    {$ifdef linux}
    //not portable folder of app
    if not DirectoryExistsUTF8(OpDirExe+DirectorySeparator+'data'+DirectorySeparator+'lexlib') then
    begin
      OpDirLocal:= _XdgConfigHome+'cudatext';
      CreateDirUTF8(OpDirLocal);
      if DirectoryExistsUTF8(OpDirPrecopy) then
        RunCommand('cp', ['-R', '-u', '-t',
  
negative.code:   end;
    {$else}
    {$ifdef darwin}
    OpDirLocal:= AppDir_Home+'Library/Application Support/CudaText';
    CreateDirUTF8(OpDirLocal);
    if DirectoryExistsUTF8(OpDirPrecopy) then
      //see rsync help. need options:
  