export HIS to the picker
This commit is contained in:
parent
2a634b0a60
commit
756789211e
|
@ -521,11 +521,14 @@ struct xdpw_share xdpw_wlr_chooser(struct xdpw_screencast_context *ctx) {
|
||||||
|
|
||||||
const char *WAYLAND_DISPLAY = getenv("WAYLAND_DISPLAY");
|
const char *WAYLAND_DISPLAY = getenv("WAYLAND_DISPLAY");
|
||||||
const char *XCURSOR_SIZE = getenv("XCURSOR_SIZE");
|
const char *XCURSOR_SIZE = getenv("XCURSOR_SIZE");
|
||||||
|
const char *HYPRLAND_INSTANCE_SIGNATURE = getenv("HYPRLAND_INSTANCE_SIGNATURE");
|
||||||
|
|
||||||
char cmd[256] = "WAYLAND_DISPLAY=";
|
char cmd[256] = "WAYLAND_DISPLAY=";
|
||||||
strcat(cmd, WAYLAND_DISPLAY);
|
strcat(cmd, WAYLAND_DISPLAY);
|
||||||
strcat(cmd, " XCURSOR_SIZE=");
|
strcat(cmd, " XCURSOR_SIZE=");
|
||||||
strcat(cmd, XCURSOR_SIZE ? XCURSOR_SIZE : "24");
|
strcat(cmd, XCURSOR_SIZE ? XCURSOR_SIZE : "24");
|
||||||
|
strcat(cmd, " HYPRLAND_INSTANCE_SIGNATURE=");
|
||||||
|
strcat(cmd, HYPRLAND_INSTANCE_SIGNATURE ? HYPRLAND_INSTANCE_SIGNATURE : "0");
|
||||||
strcat(cmd, " QT_QPA_PLATFORM=wayland hyprland-share-picker");
|
strcat(cmd, " QT_QPA_PLATFORM=wayland hyprland-share-picker");
|
||||||
|
|
||||||
logprint(DEBUG, "Screencast: Picker: Running command \"%s\"", cmd);
|
logprint(DEBUG, "Screencast: Picker: Running command \"%s\"", cmd);
|
||||||
|
|
Loading…
Reference in New Issue