Changeset 66 for trunk/UCore.pas
- Timestamp:
- Dec 10, 2021, 12:17:46 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r63 r66 74 74 ProfileImage: TImage; 75 75 LastSplitDir: string; 76 ProfilePhotoFileName: string; 76 77 procedure FileModified(Sender: TObject); 77 78 function FindFirstNonOption: string; … … 322 323 {$IFDEF Linux} 323 324 const 324 LinuxLanguagesDir = '/usr/share/vCardStudio/Languages'; 325 LinuxDataFilesDir = '/usr/share/vCardStudio'; 326 LinuxLanguagesDir = LinuxDataFilesDir + '/Languages'; 327 LinuxImagesDir = LinuxDataFilesDir + '/Images'; 325 328 {$ENDIF} 326 329 begin 330 ProfilePhotoFileName := 'Images/Profile.png'; 327 331 {$IFDEF Linux} 328 332 // If installed in Linux system then use installation directory for po files 329 if not DirectoryExists(Translator.POFilesFolder) and DirectoryExists(LinuxLanguagesDir) then 333 if not DirectoryExists(Translator.POFilesFolder) and DirectoryExists(LinuxLanguagesDir) then begin 330 334 Translator.POFilesFolder := LinuxLanguagesDir; 335 end; 336 // If installed in Linux system then use installation directory for images files 337 if not DirectoryExists('Images') and DirectoryExists(LinuxImagesDir) then begin 338 ProfilePhotoFileName := LinuxImagesDir + DirectorySeparator + 'Profile.png'; 339 end; 331 340 {$ENDIF} 332 341 … … 510 519 511 520 function TCore.GetProfileImage: TImage; 512 const513 ProfilePhotoFileName = 'Images/Profile.png';514 521 begin 515 522 if not Assigned(ProfileImage) then begin
Note:
See TracChangeset
for help on using the changeset viewer.