Changeset 79 for trunk/Forms
- Timestamp:
- Aug 2, 2016, 10:06:50 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r75 r79 9 9 ComCtrls, StdCtrls, ExtCtrls, ActnList, UAcronym, UPersistentForm, URegistry, 10 10 ULastOpenedList, UListViewSort, UJobProgressView, UCoolTranslator, Registry, 11 SpecializedList, LazUTF8 ;11 SpecializedList, LazUTF8, LazFileUtils; 12 12 13 13 type … … 167 167 ProjectExt = '.adp'; 168 168 DefaultFileName = 'Acronyms' + ProjectExt; 169 DefaultRegKey = '\Software\ Acronym Decoder';169 DefaultRegKey = '\Software\Chronosoft\Acronym Decoder'; 170 170 RegistryRunKey = '\Software\Microsoft\Windows\CurrentVersion\Run'; 171 171 ExampleFile = 'Example acronyms.adp'; … … 480 480 LoadConfig; 481 481 482 {$IFDEF 0}482 {$IFDEF 0} 483 483 if Application.HasOption('h', 'help') then begin 484 484 WriteLn('AcronymDecoder <project file>'); … … 488 488 Exit; 489 489 end; 490 {$ENDIF} 490 {$ENDIF} 491 491 492 if Application.HasOption('t', 'tray') then begin 492 493 Visible := False; … … 504 505 end else begin 505 506 // Open default database with examples if no item is in recent openned history 506 ProjectOpen(ExtractFileDir(Application.ExeName) + DirectorySeparator + ExampleFile); 507 FileNameOption := ExtractFileDir(Application.ExeName) + DirectorySeparator + ExampleFile; 508 {$IFDEF Linux} 509 // If installed in Linux system then use installation directory for po files 510 if Application.ExeName = '/usr/bin/' + ExtractFileNameOnly(Application.ExeName) then 511 FileNameOption := '/usr/share/' + ExtractFileNameOnly(Application.ExeName) + '/Examples/' + ExampleFile; 512 {$ENDIF} 513 ProjectOpen(FileNameOption); 507 514 end; 508 515 UpdateAcronymsList; … … 620 627 LastOpenedList1.LoadFromRegistry(RegistryContext); 621 628 629 {$IFDEF Linux} 630 // If installed in Linux system then use installation directory for po files 631 if Application.ExeName = '/usr/bin/' + ExtractFileNameOnly(Application.ExeName) then 632 CoolTranslator1.POFilesFolder := '/usr/share/' + ExtractFileNameOnly(Application.ExeName) + '/languages'; 633 {$ENDIF} 634 622 635 with TRegistryEx.Create do 623 636 try
Note:
See TracChangeset
for help on using the changeset viewer.