diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-23 13:05:29 +0300 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2020-07-23 13:05:39 +0300 |
commit | e8150ae4a59891eab62a77302d8ff2834a2e8f39 (patch) | |
tree | 9218883a634b873b6743283ca716e5a480e1317d /src/app.c | |
parent | 0e0441b8293d4ec865ca6f7a7c69cb8cbfa463af (diff) |
App: Load home.gmi from the app data dir
Diffstat (limited to 'src/app.c')
-rw-r--r-- | src/app.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -139,6 +139,12 @@ static void init_App_(iApp *d, int argc, char **argv) { | |||
139 | loadPrefs_App_(d); | 139 | loadPrefs_App_(d); |
140 | d->window = new_Window(); | 140 | d->window = new_Window(); |
141 | /* Widget state init. */ { | 141 | /* Widget state init. */ { |
142 | iString *homePath = newCStr_String(dataDir_App_); | ||
143 | clean_Path(homePath); | ||
144 | append_Path(homePath, &iStringLiteral("home.gmi")); | ||
145 | prependCStr_String(homePath, "file://"); | ||
146 | setUrl_DocumentWidget(findWidget_App("document"), homePath); | ||
147 | delete_String(homePath); | ||
142 | } | 148 | } |
143 | } | 149 | } |
144 | 150 | ||