Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion freedesktop/browser_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func (b *BrowserService) GetAvailableBrowsers() ([]linkquisition.Browser, error)

// grep all the .desktop files in the paths for the category "WebBrowser":
grepArgs := []string{
"-r",
"-R",
"-l",
"-E",
"^Categories=.*WebBrowser",
Expand Down
2 changes: 1 addition & 1 deletion freedesktop/xdg_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (x *XdgService) GetDesktopEntryPathForBinary(binary string) (string, error)

// grep all the .desktop files in the paths for the binary basename and return the first match:
pattern := fmt.Sprintf("^Exec=(%s|%s)", binary, filepath.Base(binary))
grepArgs := []string{"-r", "-l", "-m", "1", "-E", pattern, "--include", "*.desktop"}
grepArgs := []string{"-R", "-l", "-m", "1", "-E", pattern, "--include", "*.desktop"}
grepArgs = append(grepArgs, paths...)
cmd := exec.Command("grep", grepArgs...)

Expand Down