Skip to content

Commit

Permalink
Support WAYLAND_DISPLAY environment variable (#262)
Browse files Browse the repository at this point in the history
Fixes #261.
  • Loading branch information
draftcode authored Apr 24, 2024
1 parent ec971dc commit 50d63e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/utils/browser/browser.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func Open(url string) error {
case "windows":
args = []string{"cmd", "/c", "start"}
default:
if os.Getenv("DISPLAY") != "" {
if os.Getenv("DISPLAY") != "" || os.Getenv("WAYLAND_DISPLAY") != "" {
// xdg-open is only for use in a desktop environment.
args = []string{"xdg-open"}
}
Expand Down

0 comments on commit 50d63e0

Please sign in to comment.