Support New portals req for XDG_CURRENT_DESKTOP
As of version 1.17, xdg-desktop-portal requires desktops to declare which portals should be used. For Sway, this requires a file /usr/share/xdg-desktop-portal/sway-portals.conf (or a local user config). A reasonable default is to use GTK for the file picker (as wlr doesn't have file picker support) and wlr for screencast/screenshot support. Fedora does this similarly. [1] Upstream is not interested in shipping a configuration file [2] so we need to do it downstream. Fixes #72297 Fixes #79883 [1] https://src.fedoraproject.org/rpms/sway/blob/rawhide/f/sway-portals.conf [2] https://github.com/swaywm/sway/issues/7773ledoian
parent
97338959f2
commit
c85a455eb6
@ -0,0 +1,56 @@
|
|||||||
|
pkgbase = sway
|
||||||
|
pkgdesc = Tiling Wayland compositor and replacement for the i3 window manager
|
||||||
|
pkgver = 1.8.1
|
||||||
|
pkgrel = 2
|
||||||
|
epoch = 1
|
||||||
|
url = https://swaywm.org/
|
||||||
|
install = sway.install
|
||||||
|
arch = x86_64
|
||||||
|
license = MIT
|
||||||
|
makedepends = meson
|
||||||
|
makedepends = ninja
|
||||||
|
makedepends = scdoc
|
||||||
|
makedepends = setconf
|
||||||
|
makedepends = wayland-protocols
|
||||||
|
depends = cairo
|
||||||
|
depends = gdk-pixbuf2
|
||||||
|
depends = libevdev.so
|
||||||
|
depends = libinput
|
||||||
|
depends = libjson-c.so
|
||||||
|
depends = libudev.so
|
||||||
|
depends = libwayland-server.so
|
||||||
|
depends = libwlroots.so
|
||||||
|
depends = libxcb
|
||||||
|
depends = libxkbcommon.so
|
||||||
|
depends = pango
|
||||||
|
depends = pcre2
|
||||||
|
depends = ttf-font
|
||||||
|
optdepends = bemenu: Wayland-native alternative to dmenu
|
||||||
|
optdepends = dmenu: Application launcher used in default config
|
||||||
|
optdepends = foot: Terminal emulator used in the default configuration
|
||||||
|
optdepends = i3status: Status line generation
|
||||||
|
optdepends = mako: Lightweight notification daemon
|
||||||
|
optdepends = polkit: System privilege control. Required if not using seatd service
|
||||||
|
optdepends = swaybg: Wallpaper tool for sway
|
||||||
|
optdepends = swayidle: Idle management daemon
|
||||||
|
optdepends = swaylock: Screen locker
|
||||||
|
optdepends = waybar: Highly customizable bar
|
||||||
|
optdepends = xorg-xwayland: X11 support
|
||||||
|
optdepends = xdg-desktop-portal-gtk: Default xdg-desktop-portal for file picking
|
||||||
|
optdepends = xdg-desktop-portal-wlr: xdg-desktop-portal backend
|
||||||
|
backup = etc/sway/config
|
||||||
|
backup = etc/sway/config.d/50-systemd-user.conf
|
||||||
|
source = https://github.com/swaywm/sway/releases/download/1.8.1/sway-1.8.1.tar.gz
|
||||||
|
source = https://github.com/swaywm/sway/releases/download/1.8.1/sway-1.8.1.tar.gz.sig
|
||||||
|
source = 50-systemd-user.conf
|
||||||
|
source = sys_nice_user_xkb_configs.patch
|
||||||
|
source = sway-portals.conf
|
||||||
|
validpgpkeys = 34FF9526CFEF0E97A340E2E40FDE7BE0E88F5E48
|
||||||
|
validpgpkeys = 9DDA3B9FA5D58DD5392C78E652CB6609B22DA89A
|
||||||
|
sha512sums = 1504312a199608532e22336c5031e8f4749f5102ab321d13d97a1f93d49c8ec435e9097af729d8f7dfa81e2e96cee7de91cf4c04b6a7b7151ea740a1e43eb086
|
||||||
|
sha512sums = SKIP
|
||||||
|
sha512sums = 3e9865e917030b661a4c8aa9691f48d73679ed5f43eeffde38746081902682da93e4bca861f0a02bf9c34157c3970d56fba50723005a1e6b5bc7aa9544a27f1a
|
||||||
|
sha512sums = 156719e93d0213d1b54ce6e3a9b2dcc9246da5689dd2d3281546f9c042cbc69072f99b087e112fe777dcd786d2b9d1be1e1c9200feddffb5e2d16f8dfb27515d
|
||||||
|
sha512sums = 091a205bca875b6a78150b5b14ffaca996b7c7c3d6f68910e5891e5409ca070d27b3307e8c4916c1562a998d5bcb94406e961bf376d86e64c8ddf5afe5b41f76
|
||||||
|
|
||||||
|
pkgname = sway
|
@ -0,0 +1,4 @@
|
|||||||
|
[preferred]
|
||||||
|
default=gtk
|
||||||
|
org.freedesktop.impl.portal.Screencast=wlr
|
||||||
|
org.freedesktop.impl.portal.Screenshot=wlr
|
Loading…
Reference in New Issue