Skip to content

Commit e6e4171

Browse files
authored
Merge pull request #304 from Wieku/dev
Fix open in explorer not working on linux
2 parents f11a8b7 + 4d07984 commit e6e4171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/platform/url_others.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func ShowFileInManager(path string) {
1616

1717
switch runtime.GOOS {
1818
case "linux":
19-
err = exec.Command("busctl", "--user", "org.freedesktop.FileManager1", "/org/freedesktop/FileManager1", "org.freedesktop.FileManager1", "ShowItems", "ass", "1", "file://"+path, "").Start()
19+
_, err = exec.Command("busctl", "call", "--user", "org.freedesktop.FileManager1", "/org/freedesktop/FileManager1", "org.freedesktop.FileManager1", "ShowItems", "ass", "1", "file://"+path, "").Output()
2020

2121
if err != nil {
2222
log.Println("Failed to run busctl: ", err)

0 commit comments

Comments
 (0)