Skip to content

Commit

Permalink
linux
Browse files Browse the repository at this point in the history
  • Loading branch information
vrybant committed Dec 22, 2017
1 parent 7f9f962 commit f797fcf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion UnboundBible.lpr
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{$R *.res}

begin
Application.Title:='Unbound Bible';
Application.Title := {$ifdef windows} 'Unbound Bible'; {$else} 'unboundbible'; {$endif}
Application.Initialize;
Application.CreateForm(TMainForm, MainForm);
Application.CreateForm(TAboutBox, AboutBox);
Expand Down
Binary file added unboundbible.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 3 additions & 4 deletions unitlib.pas
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
unit UnitLib;

{$define debugmode}
{-define debugmode}
{$ifdef unix} {$undef RussianEdition} {$endif}

interface
Expand All @@ -23,9 +23,8 @@ TRange = record

const
AppName = 'Unbound Bible';
{$ifdef linux} AppDirectory = 'unboundbible'; {$endif}
TitleDirectory = 'titles';
VersionInfo = '2.0';
VersionInfo = '2.01';

// string's functions

Expand Down Expand Up @@ -260,7 +259,7 @@ function AppLocation: string;
Result := Application.Location;

{$ifdef linux}
{$ifndef debugmode} Result := '/usr/share/' + AppDirectory + '/'; {$endif}
if Prefix('/usr',Result) then Result := '/usr/share/' + Application.Title + '/';
{$endif}

{$ifdef darwin}
Expand Down

0 comments on commit f797fcf

Please sign in to comment.