Skip to content

Commit

Permalink
feat: add support for Wayland session in browser command
Browse files Browse the repository at this point in the history
  • Loading branch information
znarfm committed Feb 8, 2025
1 parent af71373 commit ce9bb64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bing_rewards/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ def browser_cmd(exe: Path, agent: str, profile: str = '') -> list[str]:
# NO CHECKING IS DONE if the profile exists
if profile:
cmd.extend([f'--profile-directory={profile}'])
if os.environ.get("XDG_SESSION_TYPE", "").lower() == "wayland":
cmd.append("--ozone-platform=x11")
return cmd


Expand Down

0 comments on commit ce9bb64

Please sign in to comment.