X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=surf.c;h=82cf822814898ea4db5cb07a2fff74a42a01b878;hb=24ec46fc241b655bf91a4529fa164ae9703d4eb6;hp=6f71657570e9cefeb02c0ef4fbc7e94f40906ccb;hpb=a5b85836ac04a82f965a9d7fb2a011d614166610;p=surf.git diff --git a/surf.c b/surf.c index 6f71657..82cf822 100644 --- a/surf.c +++ b/surf.c @@ -957,9 +957,11 @@ newwindow(Client *c, const Arg *arg, gboolean noembed) { cmd[i++] = "-b"; if(embed && !noembed) { cmd[i++] = "-e"; - snprintf(tmp, LENGTH(tmp), "%u\n", (int)embed); + snprintf(tmp, LENGTH(tmp), "%u", (int)embed); cmd[i++] = tmp; } + if(!allowgeolocation) + cmd[i++] = "-g"; if(!loadimages) cmd[i++] = "-i"; if(kioskmode)