From e1f145d15db320fe5c5e99b90898ab87db7e8214 Mon Sep 17 00:00:00 2001 From: nexec Date: Sun, 19 Mar 2023 21:38:56 +0200 Subject: [PATCH 1/2] systemd: switch slice for xdph (#34) Consider xdg-desktop-portal-hyprland as essential for user's graphic session See https://systemd.io/DESKTOP_ENVIRONMENTS/ --- contrib/systemd/xdg-desktop-portal-hyprland.service.in | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/systemd/xdg-desktop-portal-hyprland.service.in b/contrib/systemd/xdg-desktop-portal-hyprland.service.in index ecaec96..8adcb5e 100644 --- a/contrib/systemd/xdg-desktop-portal-hyprland.service.in +++ b/contrib/systemd/xdg-desktop-portal-hyprland.service.in @@ -9,3 +9,4 @@ Type=dbus BusName=org.freedesktop.impl.portal.desktop.hyprland ExecStart=@libexecdir@/xdg-desktop-portal-hyprland Restart=on-failure +Slice=session.slice From 803c00db1191604d50766358dbc5be2de4fcb4e7 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 5 Apr 2023 22:23:59 +0100 Subject: [PATCH 2/2] screencast: crudely allow metadata and ignore it --- src/core/main.c | 2 +- src/screencast/screencast.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/main.c b/src/core/main.c index 77a6501..2d63524 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -117,7 +117,7 @@ int main(int argc, char *argv[]) { .wl_display = wl_display, .pw_loop = pw_loop, .screencast_source_types = MONITOR, - .screencast_cursor_modes = HIDDEN | EMBEDDED, + .screencast_cursor_modes = HIDDEN | EMBEDDED | METADATA, .screencast_version = XDP_CAST_PROTO_VER, .screenshot_version = XDP_SHOT_PROTO_VER, .config = &config, diff --git a/src/screencast/screencast.c b/src/screencast/screencast.c index 3296bf7..3916044 100644 --- a/src/screencast/screencast.c +++ b/src/screencast/screencast.c @@ -325,8 +325,8 @@ static int method_screencast_select_sources(sd_bus_message *msg, void *data, cursor_embedded = false; } if (cursor_mode & METADATA) { - logprint(ERROR, "dbus: unsupported cursor mode requested, cancelling"); - goto error; + logprint(ERROR, "dbus: unsupported cursor mode requested, ignoring"); + // goto error; } logprint(INFO, "dbus: option cursor_mode:%x", cursor_mode); } else {