Skip to content

Commit 930bc7e

Browse files
committed
xdg-desktop-portal: update to 1.20.0
1 parent d856dbb commit 930bc7e

File tree

2 files changed

+70
-7
lines changed

2 files changed

+70
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
diff --git a/tests/meson.build b/tests/meson.build
2+
index 87b2e3904..eeb9930ee 100644
3+
--- a/tests/meson.build
4+
+++ b/tests/meson.build
5+
@@ -87,7 +87,6 @@ pytest_files = [
6+
'test_clipboard.py',
7+
'test_documents.py',
8+
'test_document_fuse.py',
9+
- 'test_dynamiclauncher.py',
10+
'test_email.py',
11+
'test_filechooser.py',
12+
'test_globalshortcuts.py',
13+
@@ -188,4 +187,4 @@ if enable_installed_tests
14+
install_dir: installed_tests_data_dir,
15+
)
16+
endforeach
17+
-endif
18+
\ No newline at end of file
19+
+endif
20+
diff --git a/tests/test_notification.py b/tests/test_notification.py
21+
index 513ac8d78..bd58e7128 100644
22+
--- a/tests/test_notification.py
23+
+++ b/tests/test_notification.py
24+
@@ -475,39 +475,6 @@ class TestNotification:
25+
26+
assert "sound" not in mock_notification
27+
28+
- def test_sound_fd(self, portals, dbus_con, app_id):
29+
- notification_intf = NotificationPortal()
30+
- mock_intf = xdp.get_mock_iface(dbus_con)
31+
-
32+
- fd = os.memfd_create("notification_sound_test", os.MFD_ALLOW_SEALING)
33+
- os.write(fd, SOUND_DATA)
34+
-
35+
- notification = NOTIFICATION_BASIC.copy()
36+
- notification["sound"] = GLib.Variant(
37+
- "(sv)",
38+
- (
39+
- "file-descriptor",
40+
- GLib.Variant("h", 0),
41+
- ),
42+
- )
43+
-
44+
- notification_intf.AddNotification("test1", notification, [fd])
45+
-
46+
- method_calls = mock_intf.GetMethodCalls("AddNotification")
47+
- assert len(method_calls) == 1
48+
- _, args = method_calls[-1]
49+
- mock_notification = args[2]
50+
-
51+
- assert mock_notification["sound"][0] == "file-descriptor"
52+
- mock_fd = mock_notification["sound"][1]
53+
- mock_fd = mock_fd.take()
54+
-
55+
- os.lseek(fd, 0, os.SEEK_SET)
56+
- fd_contents = os.read(mock_fd, 1000)
57+
- assert fd_contents == SOUND_DATA
58+
-
59+
- os.close(mock_fd)
60+
- os.close(fd)
61+
62+
def test_sound_bad(self, portals, dbus_con, app_id):
63+
notification_intf = NotificationPortal()

srcpkgs/xdg-desktop-portal/template

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
# Template file for 'xdg-desktop-portal'
22
pkgname=xdg-desktop-portal
3-
version=1.18.4
3+
version=1.20.0
44
revision=1
55
build_style=meson
6-
configure_args="-Dgeoclue=enabled -Dlibportal=enabled
7-
-Dsystemd=disabled"
8-
hostmakedepends="pkg-config gettext glib-devel bubblewrap flatpak python3-docutils"
6+
configure_args="-Dgeoclue=enabled -Dsystemd=disabled"
7+
hostmakedepends="pkg-config gettext glib-devel bubblewrap flatpak
8+
python3-docutils python3-pytest python3-dbusmock gst-plugins-good1 gstreamer1"
99
makedepends="flatpak-devel fuse3-devel pipewire-devel geoclue2-devel
10-
libportal-devel polkit-devel"
11-
checkdepends="dbus python3-dbusmock"
10+
polkit-devel gst-plugins-base1-devel libumockdev-devel"
11+
checkdepends="dbus python3-dbusmock umockdev"
1212
short_desc="Portal frontend service for Flatpak"
1313
maintainer="Duncaen <[email protected]>"
1414
license="LGPL-2.1-or-later"
1515
homepage="https://github.com/flatpak/xdg-desktop-portal"
1616
changelog="https://github.com/flatpak/xdg-desktop-portal/raw/main/NEWS"
1717
distfiles="https://github.com/flatpak/xdg-desktop-portal/archive/refs/tags/${version}.tar.gz"
18-
checksum=028d5aec19a7f6fdbe76d6c7cf982cbc4e4ee290493ded3a16b67dfff5cad589
18+
checksum=b596fa3dcec67e90d5a657395a17e347820095ac5616a28ba319f4d45a999792
1919

2020
if [ "$XBPS_BUILD_ENVIRONMENT" = "void-packages-ci" ]; then
2121
export TEST_IN_CI="true"

0 commit comments

Comments
 (0)