diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-03 15:49:16 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-05 11:49:57 +0200 |
commit | 3a4f92f04a35752fc0b9e1c92d435e4b3bca8593 (patch) | |
tree | 4b01da40bb217c6c88f01758fbd8ba1680a8c9a2 /src/app.c | |
parent | a8cd101bbef09196556f7624d2c12bc8a9ce90bf (diff) |
macOS: Fixed build
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -75,11 +75,11 @@ iDeclareType(App) | |||
75 | 75 | ||
76 | #if defined (iPlatformApple) | 76 | #if defined (iPlatformApple) |
77 | #define EMB_BIN "../../Resources/resources.lgr" | 77 | #define EMB_BIN "../../Resources/resources.lgr" |
78 | static const char *dataDir_App_ = "~/Library/Application Support/fi.skyjake.Lagrange"; | 78 | static const char *defaultDataDir_App_ = "~/Library/Application Support/fi.skyjake.Lagrange"; |
79 | #endif | 79 | #endif |
80 | #if defined (iPlatformMsys) | 80 | #if defined (iPlatformMsys) |
81 | #define EMB_BIN "../resources.lgr" | 81 | #define EMB_BIN "../resources.lgr" |
82 | static const char *dataDir_App_ = "~/AppData/Roaming/fi.skyjake.Lagrange"; | 82 | static const char *defaultDataDir_App_ = "~/AppData/Roaming/fi.skyjake.Lagrange"; |
83 | #endif | 83 | #endif |
84 | #if defined (iPlatformLinux) || defined (iPlatformOther) | 84 | #if defined (iPlatformLinux) || defined (iPlatformOther) |
85 | #define EMB_BIN "../../share/lagrange/resources.lgr" | 85 | #define EMB_BIN "../../share/lagrange/resources.lgr" |
@@ -1585,7 +1585,7 @@ void openInDefaultBrowser_App(const iString *url) { | |||
1585 | 1585 | ||
1586 | void revealPath_App(const iString *path) { | 1586 | void revealPath_App(const iString *path) { |
1587 | #if defined (iPlatformApple) | 1587 | #if defined (iPlatformApple) |
1588 | const char *scriptPath = concatPath_CStr(dataDir_App_, "revealfile.scpt"); | 1588 | const char *scriptPath = concatPath_CStr(dataDir_App_(), "revealfile.scpt"); |
1589 | iFile *f = newCStr_File(scriptPath); | 1589 | iFile *f = newCStr_File(scriptPath); |
1590 | if (open_File(f, writeOnly_FileMode | text_FileMode)) { | 1590 | if (open_File(f, writeOnly_FileMode | text_FileMode)) { |
1591 | /* AppleScript to select a specific file. */ | 1591 | /* AppleScript to select a specific file. */ |