This trivial commit adapts the _homepage patch_ [1] at the current
version of surf (2.0)

[1]: https://surf.suckless.org/patches/homepage
---
 config.def.h | 1 +
 surf.c       | 6 +++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h
index 2e735bf..0b9d377 100644
--- a/config.def.h
+++ b/config.def.h
@@ -64,6 +64,7 @@ static WebKitFindOptions findopts = 
WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE |
 
 #define PROMPT_GO   "Go:"
 #define PROMPT_FIND "Find:"
+#define HOMEPAGE "https://duckduckgo.com/";
 
 /* SETPROP(readprop, setprop, prompt)*/
 #define SETPROP(r, s, p) { \
diff --git a/surf.c b/surf.c
index 0f8b9c9..a4cedb0 100644
--- a/surf.c
+++ b/surf.c
@@ -2033,7 +2033,11 @@ main(int argc, char *argv[])
        if (argc > 0)
                arg.v = argv[0];
        else
-               arg.v = "about:blank";
+        #ifdef HOMEPAGE
+            arg.v = HOMEPAGE;
+        #else
+                   arg.v = "about:blank";
+        #endif
 
        setup();
        c = newclient(NULL);
-- 
2.14.1


Reply via email to