Skip to content

Commit

Permalink
Merge pull request reujab#13 from UlisseMini/master
Browse files Browse the repository at this point in the history
Generic fix for minimal linux with feh
  • Loading branch information
reujab authored Feb 29, 2020
2 parents 0fafb0a + 8245717 commit 4e1aa3f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,13 @@ func SetFromFile(file string) error {
return exec.Command("pcmanfm", "-w", file).Run()
case "Deepin":
return exec.Command("dconf", "write", "/com/deepin/wrap/gnome/desktop/background/picture-uri", strconv.Quote("file://"+file)).Run()
case "i3":
return exec.Command("feh", "--bg-fill", file).Run()
default:
return ErrUnsupportedDE
feh, err := exec.LookPath("feh")
if err != nil {
return ErrUnsupportedDE
}

return exec.Command(feh, "--bg-fill", file).Run()
}
}

Expand Down

0 comments on commit 4e1aa3f

Please sign in to comment.