summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2020-07-23 13:05:29 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2020-07-23 13:05:39 +0300
commite8150ae4a59891eab62a77302d8ff2834a2e8f39 (patch)
tree9218883a634b873b6743283ca716e5a480e1317d /src/app.c
parent0e0441b8293d4ec865ca6f7a7c69cb8cbfa463af (diff)
App: Load home.gmi from the app data dir
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app.c b/src/app.c
index 1164484e..03917f3e 100644
--- a/src/app.c
+++ b/src/app.c
@@ -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