Closed hikkidev closed 8 months ago
is that a problem with xdph? iirc, some apps would do the same on xdpw. It seems like they just send a screencast request multiple times.
Some apps (teams for example) do a little preview of the connected monitors; this result in a separate request (resulting in showing the picker), that then gets repeated after confirming (in-app, not with picker) an arbitrary choice (since the picker is leading).
@hikkidev Can you reproduce this on the gUM Test Page; I can only reproduce this on DIscord?
Though sometimes, this issue seems to result to XDPH to cease being responsive and needing a force kill and reopen? Before this happens it prints [ERR] [screencopy] Couldn't obtain a format from dma
My screen sharing recently stopped working (again) with the (usual) black screen issue.
Other than that, I've been seeing this "2x sharepicker" for a long time on jitsi-meet
on chrome
, also when the screensharing was working.
What is different this time:
[ERR] [screencopy] Couldn't obtain a format from dma
Share
, the picker is shown again and after selecting the screen again it shares a black screen, but there are no ERR
s in the portal log, only one WARN
: xdg-desktop-portal-hyprland[11040]: [WARN] grim not found. Screenshots will not work.
hyprland-share-picker[11125]: The cached device pixel ratio value was stale on window expose. Please file a QTBUG which explains how to reproduce.
I'm on NixOS (nixos-unstable
) and there's no difference between Hyprland
from nixpkgs
(0.33.1
) or 0.34.0
(tried both)
EDIT: oh, the black screen is possibly solved (again) by this: https://github.com/hyprwm/xdg-desktop-portal-hyprland/commit/54a30259be0dd196ffc260d6a52b6bbdbf1d5273, testing it...
I think 1.3.0 fixes this issue, so maybe try that.
Nope i still have it with 1.3.1-2
EDIT: oh, the black screen is possibly solved (again) by this: 54a3025, testing it...
Forgot to report back: using github:hyprwm/xdg-desktop-portal-hyprland/1c802128f6cc3db29a8ef01552b1a22f894eeefd
(i.e. newest commit last week) in an overlay on NixOS worked for me (in combination with Hyprland d8dbdc4a017e051b3dde2e93791e2495722bfa21
), and that's in 1.3.1
, so not sure why that didn't work for others?
EDIT: oh, the black screen is possibly solved (again) by this: 54a3025, testing it...
Forgot to report back: using
github:hyprwm/xdg-desktop-portal-hyprland/1c802128f6cc3db29a8ef01552b1a22f894eeefd
(i.e. newest commit last week) in an overlay on NixOS worked for me (in combination withHyprland d8dbdc4a017e051b3dde2e93791e2495722bfa21
), and that's in1.3.1
, so not sure why that didn't work for others?
@ppenguin Can confirm, now works! You also don't need the overlay, just use the Hyprland flake and
programs.hyprland.portalPackage = inputs.hyprland.packages.${pkgs.system}.xdg-desktop-portal-hyprland;
"Fixed" - Some apps just send a screencast request multiple times
I apprechiate that it's the other programs behaving badly. However, this affects a lot of apps in practice (chromium, discord, other electron apps), and it's quite annoying.
Is there a possibility of e.g. a workaround being implemented, where multiple share-requests by the same app within a few seconds are auto-responded?
I am aware that this would have adverse effects (both from a usability perspective, and a security perspective), and probably should be behind a config option, but it would massively simplify some of my workflows. I can't always chose which apps I use e.g. for work, unfortunately.
"a lot of apps"
well, no, just browsers xD
Anyways, feel free to mr
well, no, just browsers xD
Entirely fair, that said, hyprland is so far my favorite way to organize all my browsers, like my IDE, messaging apps, email client, task managment software, ... :)
Anyways, feel free to mr
I'll look into it, but my C++ has always been a bit dicey
"a lot of apps"
imho more precisely a lot of use cases.
For me, for example, it's just Zoom, Slack, and browsers but it's also pretty much all the apps I use for screensharing, making this problem extremely annoying.
A checkbox saying "Remember selection for n
seconds" would indeed be nice but I'm not sure if the picker is even stateful for this to be possible.
allow the restore token and on recent xdph versions (1.3.5) it wont show up multiple times
Steps to reproduce
Try to share an entire screen or a window (video).
Expected behavior:
hyprland-share-picker
is shown onceActual behavior:
hyprland-share-picker
is shown multiple times (video)Logs
hyprland.log xdph.log
Soft
hyprland-bin: (https://github.com/hyprwm/Hyprland/releases/tag/v0.19.1beta) xdg-desktop-portal-hyprland-git r240.7567892-1
System
Redirect from https://github.com/hyprwm/Hyprland/issues/1223