Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Trying to screenshare on macOS causes reoccurring permission prompt #727

Open
3 tasks done
Spritzerland opened this issue Jul 5, 2024 · 4 comments
Open
3 tasks done
Labels
bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on

Comments

@Spritzerland
Copy link

Discord Account

spritzer.

Operating System

macOS Sonoma

Linux Only ~ Desktop Environment

No response

What happens when the bug or crash occurs?

The bug happens when you click the Screenshare button whilst in a voice channel. The permissions prompt cannot be closed, as it reopens when you try to close it. It still happens even when the permissions are correctly set.

What is the expected behaviour?

Vencord should open up the screenshare prompt and make it screenshare the screen.

How do you recreate this bug or crash?

  1. Join a voice channel while on macOS Sonoma
  2. Click the Screenshare button

Debug Logs

Detected legacy settings dir /Users/spritzerland/Library/Application Support/VencordDesktop/VencordDesktop. migrating to /Users/spritzerland/Library/Application Support/vesktop
Migration failed Error: ENOTEMPTY: directory not empty, rename '/Users/spritzerland/Library/Application Support/VencordDesktop/VencordDesktop/settings' -> '/Users/spritzerland/Library/Application Support/vesktop/settings'
    at renameSync (node:fs:1030:11)
    at VCDMain:1:4126
    at VCDMain:1:225
    at Object.<anonymous> (VCDMain:87:331)
    at Module._compile (node:internal/modules/cjs/loader:1373:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1432:10)
    at Module.load (node:internal/modules/cjs/loader:1215:32)
    at Module._load (node:internal/modules/cjs/loader:1031:12)
    at c._load (node:electron/js2c/node_init:2:17025)
    at node:electron/js2c/browser_init:2:126239 {
  errno: -66,
  code: 'ENOTEMPTY',
  syscall: 'rename',
  path: '/Users/spritzerland/Library/Application Support/VencordDesktop/VencordDesktop/settings',
  dest: '/Users/spritzerland/Library/Application Support/vesktop/settings'
}
Checking for update
Update for version 1.5.3 is not available (latest version: 1.5.3, downgrade is disallowed).
checkForUpdatesAndNotify called, downloadPromise is null
[36097:0704/185800.421752:ERROR:ffmpeg_common.cc(959)] Unsupported pixel format: -1
2024-07-04 18:58:00.477 Vesktop Helper (Plugin)[36099:1656234] WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist.
[36094:0704/185856.513517:ERROR:socket_udp.cc(196)] bind() to fda7:3ec2:b049::2:0 failed: -147
spritzerland@machinations ~ % /Applications/Vesktop.app/Contents/MacOS/Vesktop 
Detected legacy settings dir /Users/spritzerland/Library/Application Support/VencordDesktop/VencordDesktop. migrating to /Users/spritzerland/Library/Application Support/vesktop
Migration failed Error: ENOTEMPTY: directory not empty, rename '/Users/spritzerland/Library/Application Support/VencordDesktop/VencordDesktop/settings' -> '/Users/spritzerland/Library/Application Support/vesktop/settings'
    at renameSync (node:fs:1030:11)
    at VCDMain:1:4126
    at VCDMain:1:225
    at Object.<anonymous> (VCDMain:87:331)
    at Module._compile (node:internal/modules/cjs/loader:1373:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1432:10)
    at Module.load (node:internal/modules/cjs/loader:1215:32)
    at Module._load (node:internal/modules/cjs/loader:1031:12)
    at c._load (node:electron/js2c/node_init:2:17025)
    at node:electron/js2c/browser_init:2:126239 {
  errno: -66,
  code: 'ENOTEMPTY',
  syscall: 'rename',
  path: '/Users/spritzerland/Library/Application Support/VencordDesktop/VencordDesktop/settings',
  dest: '/Users/spritzerland/Library/Application Support/vesktop/settings'
}
Checking for update
Update for version 1.5.3 is not available (latest version: 1.5.3, downgrade is disallowed).
checkForUpdatesAndNotify called, downloadPromise is null
[36296:0704/185920.226400:ERROR:ffmpeg_common.cc(959)] Unsupported pixel format: -1
2024-07-04 18:59:22.411 Vesktop Helper (Plugin)[36298:1659795] WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist.

Request Agreement

  • I have searched the existing issues and found no similar issue
  • I am using the latest Vesktop and Vencord versions
  • This issue occurs on an official release (not just the AUR or Nix packages)
@Spritzerland Spritzerland added the bug Something isn't working label Jul 5, 2024
@Vendicated
Copy link
Member

first of all it seems that your vesktop didn't properly migrate when we changed name a while ago, so you should manually delete /Users/spritzerland/Library/Application Support/VencordDesktop

once you did that, try reinstalling

@jacksongoode
Copy link

jacksongoode commented Jul 5, 2024

Having the same issue as reported

once you did that, try reinstalling

Same permissions spam after full reinstall.

@NotAriRay
Copy link

Same issue here, only solution I've found so far is using an older version.

@Vendicated Vendicated added help wanted Extra attention is needed wontfix This will not be worked on labels Jul 19, 2024
@cavaevinci
Copy link

I faced the same issue,but got it fixed by going to Settings -> Privacy And Security -> Screen & System Audio Recording and adding permission to iTerm,since I build from source code on macOS.Not ideal,but makes it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

5 participants