From cea7c28baea2dad13fc4953eab4beeab307ad7a9 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 5 Dec 2022 00:37:10 +0000 Subject: [PATCH] force wayland platform for qt in invoking picker --- src/screencast/wlr_screencast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screencast/wlr_screencast.c b/src/screencast/wlr_screencast.c index 960523d..0dce807 100644 --- a/src/screencast/wlr_screencast.c +++ b/src/screencast/wlr_screencast.c @@ -523,7 +523,7 @@ struct xdpw_share xdpw_wlr_chooser(struct xdpw_screencast_context *ctx) { char cmd[128] = "WAYLAND_DISPLAY="; strcat(cmd, WAYLAND_DISPLAY); - strcat(cmd, " hyprland-share-picker"); + strcat(cmd, " QT_QPA_PLATFORM=wayland hyprland-share-picker"); fp = popen(cmd, "r"); if (fp == NULL) {