=> 9adb3b5f7ed3688e0b7347e29967154df72ab999
[1mdiff --git a/src/app.c b/src/app.c[m [1mindex f5294cb0..36388062 100644[m [1m--- a/src/app.c[m [1m+++ b/src/app.c[m [36m@@ -286,6 +286,7 @@[m [mstatic void saveState_App_(const iApp *d) {[m }[m [m static void init_App_(iApp *d, int argc, char **argv) {[m [32m+[m[32m const iBool isFirstRun = !fileExistsCStr_FileInfo(cleanedPath_CStr(dataDir_App_));[m d->isFinishedLaunching = iFalse;[m d->launchCommands = new_StringList();[m iZap(d->lastDropTime);[m [36m@@ -316,6 +317,29 @@[m [mstatic void init_App_(iApp *d, int argc, char **argv) {[m loadPrefs_App_(d);[m load_Visited(d->visited, dataDir_App_);[m load_Bookmarks(d->bookmarks, dataDir_App_);[m [32m+[m[32m if (isFirstRun) {[m [32m+[m[32m /* Create the default bookmarks for a quick start. */[m [32m+[m[32m add_Bookmarks(d->bookmarks,[m [32m+[m[32m collectNewCStr_String("gemini://gemini.circumlunar.space/"),[m [32m+[m[32m collectNewCStr_String("Project Gemini"),[m [32m+[m[32m NULL,[m [32m+[m[32m 0x264a /* Gemini symbol */);[m [32m+[m[32m add_Bookmarks(d->bookmarks,[m [32m+[m[32m collectNewCStr_String("gemini://gemini.circumlunar.space/capcom/"),[m [32m+[m[32m collectNewCStr_String("CAPCOM Geminispace aggregator"),[m [32m+[m[32m NULL,[m [32m+[m[32m 0x264a /* Gemini symbol */);[m [32m+[m[32m add_Bookmarks(d->bookmarks,[m [32m+[m[32m collectNewCStr_String("gemini://gus.guru/"),[m [32m+[m[32m collectNewCStr_String("GUS - Gemini Universal Search"),[m [32m+[m[32m NULL,[m [32m+[m[32m 0x2690);[m [32m+[m[32m add_Bookmarks(d->bookmarks,[m [32m+[m[32m collectNewCStr_String("gemini://skyjake.fi/lagrange/"),[m [32m+[m[32m collectNewCStr_String("Lagrange"),[m [32m+[m[32m NULL,[m [32m+[m[32m 0x1f306);[m [32m+[m[32m }[m #if defined (iHaveLoadEmbed)[m /* Load the resources from a file. */ {[m if (!load_Embed(concatPath_CStr(cstr_String(execPath_App()), EMB_BIN))) {[m [1mdiff --git a/src/bookmarks.c b/src/bookmarks.c[m [1mindex 6a5eb296..8fe7d109 100644[m [1m--- a/src/bookmarks.c[m [1m+++ b/src/bookmarks.c[m [36m@@ -145,7 +145,7 @@[m [mvoid add_Bookmarks(iBookmarks *d, const iString *url, const iString *title, cons[m iBookmark *bm = new_Bookmark();[m set_String(&bm->url, url);[m set_String(&bm->title, title);[m [31m- set_String(&bm->tags, tags);[m [32m+[m[32m if (tags) set_String(&bm->tags, tags);[m bm->icon = icon;[m initCurrent_Time(&bm->when);[m insert_Bookmarks_(d, bm);[m
text/gemini; charset=utf-8
This content has been proxied by September (ba2dc).