Fossil SCM
Add a "<tt>2>/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.
Commit
2cf91c0c885f539f567f244d32729503a34e9c8b0714ce2fb91dce5c3bf7c2c0
Parent
680acb2831ad5d5…
1 file changed
+1
-1
+1
-1
| --- src/main.c | ||
| +++ src/main.c | ||
| @@ -3435,11 +3435,11 @@ | ||
| 3435 | 3435 | }else if( strchr(zIpAddr,':') ){ |
| 3436 | 3436 | zBrowserArg = mprintf("%s://[%s]:%%d/%s", zProtocol, zIpAddr, zInitPage); |
| 3437 | 3437 | }else{ |
| 3438 | 3438 | zBrowserArg = mprintf("%s://%s:%%d/%s", zProtocol, zIpAddr, zInitPage); |
| 3439 | 3439 | } |
| 3440 | - zBrowserCmd = mprintf("%s %!$ &", zBrowser, zBrowserArg); | |
| 3440 | + zBrowserCmd = mprintf("%s %!$ 2>/dev/null &", zBrowser, zBrowserArg); | |
| 3441 | 3441 | fossil_free(zBrowserArg); |
| 3442 | 3442 | } |
| 3443 | 3443 | if( zRemote ){ |
| 3444 | 3444 | /* If a USER@HOST:REPO argument is supplied, then use SSH to run |
| 3445 | 3445 | ** "fossil ui --nobrowser" on the remote system and to set up a |
| 3446 | 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 %!$ &", 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 |