force wayland platform for qt in invoking picker

This commit is contained in:
vaxerski 2022-12-05 00:37:10 +00:00
parent bd91bd0d4e
commit cea7c28bae

View file

@ -523,7 +523,7 @@ struct xdpw_share xdpw_wlr_chooser(struct xdpw_screencast_context *ctx) {
char cmd[128] = "WAYLAND_DISPLAY="; char cmd[128] = "WAYLAND_DISPLAY=";
strcat(cmd, WAYLAND_DISPLAY); strcat(cmd, WAYLAND_DISPLAY);
strcat(cmd, " hyprland-share-picker"); strcat(cmd, " QT_QPA_PLATFORM=wayland hyprland-share-picker");
fp = popen(cmd, "r"); fp = popen(cmd, "r");
if (fp == NULL) { if (fp == NULL) {