Rules-based browser launcher for TUI + GNOME. switchyard.aly.codes
tui gome bowser go
0

Configure Feed

Select the types of activity you want to include in your feed.

gtk/browser: run browserscan.Installed in a goroutine

Aly Raffauf (Jul 5, 2026, 10:58 PM EDT) 7518bc5d e5c737df

+6 -1
+6 -1
gtk/browser.go
··· 26 26 27 27 // detectBrowsers gets metadata from browserscan and an optional live GIO handle. 28 28 func detectBrowsers() []*Browser { 29 + installedBrowsers := make(chan []appbrowser.Browser, 1) 30 + go func() { 31 + installedBrowsers <- browserscan.Installed() 32 + }() 33 + 29 34 appInfoByID := make(map[string]*gio.AppInfo) 30 35 for _, appInfo := range gio.AppInfoGetRecommendedForType("x-scheme-handler/http") { 31 36 if id := appInfo.ID(); id != "" { ··· 33 38 } 34 39 } 35 40 36 - installed := browserscan.Installed() 41 + installed := <-installedBrowsers 37 42 browsers := make([]*Browser, 0, len(installed)) 38 43 for i := range installed { 39 44 browserModel := installed[i]