Skip to content

Ability to set App ID on Wayland #21783

Description

@vic485

Is your feature request related to a problem? Please describe.

Currently with the Avalonia.Wayland package, the toplevel app id is unset, which the compositor gets as an empty string. This causes issues when trying to rely on it for window rules and grouping.

Describe the solution you'd like

Adding an AppId property to WaylandPlatformOptions so

.UseWayland()
.With(new WaylandPlatformOptions { AppId = "com.my.app" })

in the app builder sets xdg_toplevel.app_id. Can also default to the assembly name similar to how X11/XWayland sets WmClass.

Describe alternatives you've considered

No response

Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions