Fossil SCM

Add a "<tt>2&gt;/dev/null</tt>" to the subcommand that launches the webbrowser for "fossil ui" and similar, because Ubuntu 24 prints a lots of useless verbage on stderr when starting firefox.

drh 2025-01-11 00:34 trunk
Commit 2cf91c0c885f539f567f244d32729503a34e9c8b0714ce2fb91dce5c3bf7c2c0
1 file changed +1 -1
+1 -1
--- src/main.c
+++ src/main.c
@@ -3435,11 +3435,11 @@
34353435
}else if( strchr(zIpAddr,':') ){
34363436
zBrowserArg = mprintf("%s://[%s]:%%d/%s", zProtocol, zIpAddr, zInitPage);
34373437
}else{
34383438
zBrowserArg = mprintf("%s://%s:%%d/%s", zProtocol, zIpAddr, zInitPage);
34393439
}
3440
- zBrowserCmd = mprintf("%s %!$ &", zBrowser, zBrowserArg);
3440
+ zBrowserCmd = mprintf("%s %!$ 2>/dev/null &", zBrowser, zBrowserArg);
34413441
fossil_free(zBrowserArg);
34423442
}
34433443
if( zRemote ){
34443444
/* If a USER@HOST:REPO argument is supplied, then use SSH to run
34453445
** "fossil ui --nobrowser" on the remote system and to set up a
34463446
--- src/main.c
+++ src/main.c
@@ -3435,11 +3435,11 @@
3435 }else if( strchr(zIpAddr,':') ){
3436 zBrowserArg = mprintf("%s://[%s]:%%d/%s", zProtocol, zIpAddr, zInitPage);
3437 }else{
3438 zBrowserArg = mprintf("%s://%s:%%d/%s", zProtocol, zIpAddr, zInitPage);
3439 }
3440 zBrowserCmd = mprintf("%s %!$ &", zBrowser, zBrowserArg);
3441 fossil_free(zBrowserArg);
3442 }
3443 if( zRemote ){
3444 /* If a USER@HOST:REPO argument is supplied, then use SSH to run
3445 ** "fossil ui --nobrowser" on the remote system and to set up a
3446
--- src/main.c
+++ src/main.c
@@ -3435,11 +3435,11 @@
3435 }else if( strchr(zIpAddr,':') ){
3436 zBrowserArg = mprintf("%s://[%s]:%%d/%s", zProtocol, zIpAddr, zInitPage);
3437 }else{
3438 zBrowserArg = mprintf("%s://%s:%%d/%s", zProtocol, zIpAddr, zInitPage);
3439 }
3440 zBrowserCmd = mprintf("%s %!$ 2>/dev/null &", zBrowser, zBrowserArg);
3441 fossil_free(zBrowserArg);
3442 }
3443 if( zRemote ){
3444 /* If a USER@HOST:REPO argument is supplied, then use SSH to run
3445 ** "fossil ui --nobrowser" on the remote system and to set up a
3446

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button