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

[MacOS] Vesktop not asking for microphone permission #440

Closed
Lenochxd opened this issue Mar 12, 2024 · 26 comments
Closed

[MacOS] Vesktop not asking for microphone permission #440

Lenochxd opened this issue Mar 12, 2024 · 26 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Lenochxd
Copy link

Describe the bug

Vesktop does not ask for microphone permission (Hackintosh MacOS Sonoma 14.3.1)

To Reproduce

  1. install macos Sonoma
  2. join vc
  3. mic not working

Expected behavior

Vesktop should ask for mic permission, it already asks for screen sharing before streaming, but we cannot

Screenshots

image

Desktop (please complete the following information):

  • OS/Distro: MacOS (Hackintosh)
  • Version: Sonoma 14.3.1

Command line output

j@Mac-Pro Vencord-client % open /Applications/Vesktop.app
j@Mac-Pro Vencord-client %

(sorry :/ )

Additional context

I installed Vesktop because original Discord doesn't let me stream without crashing (hackintosh issue), and now I can stream but not talk.

Also, I tried giving microphone permissions to dev.vencord.vesktop manually but that doesn't seem possible anymore on Sonoma.

@Lenochxd Lenochxd added the bug Something isn't working label Mar 12, 2024
@Lenochxd
Copy link
Author

Update!

I tried downgrading to 1.5.0 because I saw that 1.5.1 fixed screenshare audio using microphone on debian, and this time the permission was asked when opening the app

image

@tworstwots
Copy link

Can confirm, this is broken for me on 1.5.1 as well.

@mymindishazel
Copy link

Also, I tried giving microphone permissions to dev.vencord.vesktop manually but that doesn't seem possible anymore on Sonoma.

there’s always the cursed way

sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db

insert into access values ('kTCCServiceMicrophone','dev.vencord.vesktop', 0, 2, 2, 1, null, null, null, 'UNUSED', null, null, 1706117326, null, null, 'UNUSED', 0);

@Vendicated
Copy link
Member

might be because vesktop 1.5.1 is now signed (should be? im not actually entirely sure)

and possibly missing some entitlements?

@Vendicated Vendicated added the help wanted Extra attention is needed label Mar 13, 2024
@SympathyTea
Copy link

also having this same issue with 1.5.1 on windows 11 (if it matters to mention)

@Un1q32
Copy link

Un1q32 commented Mar 16, 2024

same issue on 1.5.1 macOS 14.4
MBP mid 2014 running OCLP

@Un1q32
Copy link

Un1q32 commented Mar 16, 2024

there’s always the cursed way

sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db

insert into access values ('kTCCServiceMicrophone','dev.vencord.vesktop', 0, 2, 2, 1, null, null, null, 'UNUSED', null, null, 1706117326, null, null, 'UNUSED', 0);

This worked for me as a workaround

@MrGamerDoesGames
Copy link

Also, I tried giving microphone permissions to dev.vencord.vesktop manually but that doesn't seem possible anymore on Sonoma.

there’s always the cursed way

sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db

insert into access values ('kTCCServiceMicrophone','dev.vencord.vesktop', 0, 2, 2, 1, null, null, null, 'UNUSED', null, null, 1706117326, null, null, 'UNUSED', 0);

how did you run this in terminal? I tried and just got a prompt asking me to put text in

@Kyanoxia
Copy link

Also, I tried giving microphone permissions to dev.vencord.vesktop manually but that doesn't seem possible anymore on Sonoma.

there’s always the cursed way

sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db

insert into access values ('kTCCServiceMicrophone','dev.vencord.vesktop', 0, 2, 2, 1, null, null, null, 'UNUSED', null, null, 1706117326, null, null, 'UNUSED', 0);

Getting this error when putting the second line into the sqlite prompt:

Runtime error: UNIQUE constraint failed: access.service, access.client, access.client_type, access.indirect_object_identifier (19)

Any help is appreciated.

@andresik12
Copy link

Same error on 1.5.1 (1.5.0 is ok), but when i try enter an voice channel or open audio settings, client crashing. attaching the log: crash.log

@AvianAnalyst
Copy link

@MrGamerDoesGames That prompt is the sqlite prompt (i assume) and is where you put in the next provided input

@SpektacleFR The problem is there's already a permissions entry. I'm not sure why it wasn't working for us, but you have to delete it first. Then you can insert the new permissions line with the command provided, restart vesktop, and it should work for you (did for me at least).

To delete the previous one I used
delete from access where service='kTCCServiceMicrophone' and client='dev.vencord.vesktop'; but if you know sql and have a different/better way that shouldn't be fine.

@ayildirim21
Copy link

Having this same issue on arch linux. Permanently muted, and no input device is being detected in the settings

@archaicimaging
Copy link

Had this issue on MacOS Ventura 13.6.6, on Canary Vesktop as well. Trying to enter the Voice And Video setting page, joining VCs, both immediately crashed the app.

@AvianAnalyst
Copy link

I don't know if it's related, but on mac I'm not able to screenshare anymore because of permissions problems.

@EndenDragon
Copy link

might be because vesktop 1.5.1 is now signed (should be? im not actually entirely sure)

and possibly missing some entitlements?

After reading up the termination reason provided in #475, could the solution be something along the lines described within this? electron-userland/electron-builder#6948 (comment)

@lockieluke
Copy link

Also, I tried giving microphone permissions to dev.vencord.vesktop manually but that doesn't seem possible anymore on Sonoma.

there’s always the cursed way

sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db

insert into access values ('kTCCServiceMicrophone','dev.vencord.vesktop', 0, 2, 2, 1, null, null, null, 'UNUSED', null, null, 1706117326, null, null, 'UNUSED', 0);

No permission
image

@EndenDragon
Copy link

No permission image

I gave terminal full disk access in system preferences and it worked.

@lockieluke
Copy link

Screenshot 2024-04-10 at 18 05 49

Still doesn't work

@EndenDragon
Copy link

Screenshot 2024-04-10 at 18 05 49

Still doesn't work

Please reference this comment for solution: #440 (comment)

@archaicimaging
Copy link

Do we have a official fix for this yet, or are we still using the workaround?

@Lenochxd
Copy link
Author

Do we have a official fix for this yet, or are we still using the workaround?

You can downgrade to 1.5.0

@archaicimaging
Copy link

Alright, I can confirm it indeed works via downgrading to 1.5.0, I've been in a VC for 15 minutes and it's just fine.

@Vendicated
Copy link
Member

there's no fix. Like i said, it's likely due to missing entitlements in the plist which is required when signing your app

i don't have a mac nor do i know anything about mac so i personally can't fix it. contributions welcome

see electron-userland/electron-builder#6948 (comment)

@khcrysalis
Copy link
Contributor

I have attempted to fix the issue here by adding the entitlements by file in my pull request here #533

@Vendicated
Copy link
Member

please try the builds from https://github.com/Vencord/Vesktop/releases/v1.5.2-alpha.1 and see if all permissions work correctly now

@lockieluke
Copy link

I manually removed the microphone permission entry from System Settings using a SQL Viewer and I can confirm the new build now works as expected
image

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
Projects
None yet
Development

No branches or pull requests