Closed iTrooz closed 2 years ago
I'm not so sure about this, but I found this in the code : Which I think translates into "exit if there's one monitor or less"
I'm not so sure about this, but I found this in the code : Which I think translates into "exit if there's one monitor or less"
I edited the condition with if (monitors.length < 1) {
, and now mon2cam seems to work.
Why was the condition made like this ?
EDIT : Just realised what mon2cam was made for (fixing screenshare for multiple screens), and that I tried to use it incorrectly. Still, I think that would be a nice change to make, in case people just want to use their webcam to share their unique screen.
What do you think ?
I'm not sure who wrote that, but my guess is nobody using mon2cam has 1 screen to hit that bug, and discord fixed their screen sharing, so less people use mon2cam now, it is supposed to work for single monitor users
Hello ! Sorry it's my first time dealing with typescript projets, I did not realise the code I edited (I directly edited /usr/bin/mon2cam directly on my system) is not the actual code, but compiled typescript
The line in question is in x11.ts : https://github.com/ShayBox/Mon2Cam/blob/0919db53322b46879d41e0c7e39775f9d03e4429/src/backends/x11.ts#L41
I'm going to submit a PR for it
When I run mon2cam, it immediately returns
Output of
uname -a
:Linux arch-3306 5.17.5-arch1-2 #1 SMP PREEMPT Fri, 06 May 2022 18:29:03 +0000 x86_64 GNU/Linux
I'm using KDE with X11, I installed mon2cam using AUR
EDIT : output of
xrandr
: