Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Use WAYLAND_DISPLAY instead of nonstandard XDG_SESSION_TYPE #797

@yukawa

Description

@yukawa

Description

While we've been checking if XDG_SESSION_TYPE environment variable is wayland or not to check whether the ibus-mozc is running under Wayland session or not for long time since 2d39bb4 for #431, it seems that XDG_SESSION_TYPE is just a convention invented by systemd forks, and may not be set.

Let's use WAYLAND_DISPLAY instead for simplicity and better compatibility.

Version or commit-id

89c7008

Environment

  • OS: Linux all
  • IMF: Only affects ibus-mozc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions