Crash on Wayland when selecting native window frame style

Steps to reproduce

  1. Install obsidian from the AUR on Hyprland or Sway
  2. Have --enable-features=UseOzonePlatformand --ozone-platform-hint=waylandin your electron-flags.conf
  3. Launch Obsidian
  4. Go to Settings → Appearance and change “Window frame style” to “Native frame”
  5. Relaunch application
  6. Once relaunched, go to settings and select appearance again. This and other actions make Obsidian crash

Expected result

Obsidian not crashing

Actual result

The application crashed.

Environment

  • Operating system:
Arch Linux, kernel 6.2.6
  • Debug info:

SYSTEM INFO:
Obsidian version: v1.1.16
Installer version: v1.1.16
Operating system: #1 SMP PREEMPT_DYNAMIC Mon, 13 Mar 2023 17:02:08 +0000 6.2.6-arch1-1
Login status: not logged in
Insider build toggle: off
Live preview: on
Legacy editor: off
Base theme: adapt to system
Community theme: Catppuccin v0.4.5
Snippets enabled: 0
Restricted mode: on

RECOMMENDATIONS:
Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.


Additional information

We don’t support the AUR package because we don’t make it.
Your setup is quite niche and it’s unlikely that we are gonna look into this even this is due to Obsidian. However if “it crashes”, it’s likely an electron issue.