Skip to content

ScreenCast portal is misspelled as Screencast in sway-portals.conf

Description:

The name of the ScreenCast portal (uppercase C) is misspelled as Screencast (lowercase c) in sway-portals.conf, which causes xdg-desktop-portal to fall back to the deprecated UseIn key from the portal definitions, leading to the xdg-desktop-portal-hyprland screencast portal being used instead of xdg-desktop-portal-wlr.

Additional info:

  • package version(s): sway 1:1.8.1-4, xdg-desktop-portal 1.18.2-1, xdg-desktop-portal-wlr 0.7.0-2, xdg-desktop-portal-hyprland 1.2.6-1
  • config and/or log files: log-broken.txt, log-fixed.txt
  • link to upstream bug report, if any: sway-portals.conf is a downstream file

Steps to reproduce:

  1. Install sway, xdg-desktop-portal, xdg-desktop-portal-wlr and xdg-desktop-portal-hyprland
  2. Start sway
  3. Observe journalctl --user -u xdg-desktop-portal -f
  4. Run systemctl --user restart xdg-desktop-portal (produces log-broken.txt)
  5. Change sway-portals.conf to fix the typo
  6. Run systemctl --user restart xdg-desktop-portal (produces log-fixed.txt)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information