mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
community/sway: bring -portalconf up to date with xdg
`DesktopNames` is now part of the spec, so remove the `X-` prefix, as gdm only queries `DesktopNames`. This actually sets XDG_CURRENT_DESKTOP with gdm now. Also add a warning for users of sway-portalsconf, that not all portals are provided by us. For things like the keyring or color-scheme more portal backends have to be specified. Also move the `sway-portals.conf` to `/usr/share/...` instead of `/etc`.
This commit is contained in:
parent
54685d918c
commit
a8af19ee3d
@ -1,10 +1,9 @@
|
||||
# Contributor: Henrik Riomar <henrik.riomar@gmail.com>
|
||||
# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
|
||||
# Contributor:
|
||||
# Maintainer: Michał Polański <michal@polanski.me>
|
||||
pkgname=sway
|
||||
pkgver=1.9
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="i3-compatible window manager for Wayland"
|
||||
url="https://swaywm.org/"
|
||||
license="MIT"
|
||||
@ -45,6 +44,7 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/swaywm/sway/archive/$pkgver.
|
||||
sway.desktop
|
||||
remove-aports-git-version.patch
|
||||
"
|
||||
install="$pkgname-portalsconf.pre-install $pkgname-portalsconf.pre-upgrade"
|
||||
options="setcap !check" # no test suite
|
||||
|
||||
# Remove when Alpine >= 3.21
|
||||
@ -76,7 +76,7 @@ portalsconf() {
|
||||
install_if="$pkgname=$pkgver-r$pkgrel xdg-desktop-portal>=1.17.0"
|
||||
|
||||
install -Dm644 "$srcdir"/sway-portals.conf \
|
||||
-t "$subpkgdir"/etc/xdg-desktop-portal/
|
||||
-t "$subpkgdir"/usr/share/xdg-desktop-portal/
|
||||
}
|
||||
|
||||
wallpapers() {
|
||||
@ -104,6 +104,6 @@ swaynag() {
|
||||
sha512sums="
|
||||
7ec0a29078eb7e0fb1b6af97613c263adec78ddb03a63cb75fb5e44c7241ed144687fd094ee2eb70f4397832ca9bdffc88bc32dee7683bf0e515417c7a05d4c4 sway-1.9.tar.gz
|
||||
c10862928d839a5a8a3a8c235ab9df58b0ffb111b7a0b11e9110b39169ac37de6e7eb1d945ec3611fb213ba159f0e47afd97085faa6ee8238e4d06fed0d74d70 sway-portals.conf
|
||||
c9bc08fbd9d059c037ad1e3b7ab5e91bcde27dce248cc558c1f126b01c85b1d0d4ed4bb10e3f27bc818a06e60a81f19478b95529d4eeb32036e2c6ea9f29db36 sway.desktop
|
||||
327f11cc053b39816da76a62199ef40f564acc1fe474b013fc1fd594c448ae3da805bfc475b7c68cce3a17b4a261c5a4bc7e9e91a471f90f5cf4e95bbd937e6c sway.desktop
|
||||
3081f34ff88be38889ace94489ff4dc97a3d2d8402a6f2e83e968b991db478b7d3329d1685697898d8e43761e83be0d7c348a5fee45fe41dbb77521cda7b5a72 remove-aports-git-version.patch
|
||||
"
|
||||
|
15
community/sway/sway-portalsconf.pre-install
Normal file
15
community/sway/sway-portalsconf.pre-install
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
cat << __EOF__
|
||||
*
|
||||
* The sway-portals.conf from the package \`sway-portalsconf\` doesn't specify multiple
|
||||
* important portal backends, as this is left for the user to configure. Mainly
|
||||
* org.freedesktop.Settings (used for e.g the color scheme) and org.freedesktop.Secret.
|
||||
*
|
||||
* See also:
|
||||
* - \`man 5 portals.conf\`
|
||||
* - https://flatpak.github.io/xdg-desktop-portal/docs/backends.html
|
||||
*
|
||||
__EOF__
|
||||
|
||||
exit 0
|
1
community/sway/sway-portalsconf.pre-upgrade
Symbolic link
1
community/sway/sway-portalsconf.pre-upgrade
Symbolic link
@ -0,0 +1 @@
|
||||
sway-portalsconf.pre-install
|
@ -7,5 +7,5 @@ Exec=dbus-run-session /usr/bin/sway
|
||||
TryExec=/usr/bin/sway
|
||||
Icon=
|
||||
Type=Application
|
||||
X-DesktopNames=Sway
|
||||
DesktopNames=Sway
|
||||
Keywords=launch;Sway;desktop;session;
|
||||
|
Loading…
Reference in New Issue
Block a user