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

mac端打包后每次截图都会弹出屏幕录制权限提示,而且除了当前应用其他应用被隐藏 #209

Open
yyhdev opened this issue Apr 13, 2023 · 5 comments

Comments

@yyhdev
Copy link

yyhdev commented Apr 13, 2023

作者您好,我在开发环境使用这个插件时一切正常,但是在打包后,每次截图都会弹出提示
image

我在main.js中设置了appId
app.setAppUserModelId('appId')

系统版本:mac Ventura 13.2.1

而且在安全与隐私中已经同意了屏幕录制权限
image

@nashaofu
Copy link
Owner

授权的是这个应用吗?正常情况下授权了就不应该出现这个对话框才对呀

@yyhdev
Copy link
Author

yyhdev commented Apr 18, 2023

授权的是这个应用吗?正常情况下授权了就不应该出现这个对话框才对呀

image

就是这个应用,而且奇怪的是我在应用程序中右键显示包内容,点击Contents -> MacOS中的启动脚本,就不会出现权限提示,而且可以正常截图,只有双击程序图标启动才有这个问题

启动脚本启动:
image
image

双击图标启动:
image

@gusye1234
Copy link

我也遇到了类似的问题, 每次退出后重新启动就需要新的权限确定, 即使system里已经勾选了这个app. 而且截图的时候app都被隐藏了, 只有个空桌面.
dev情况下一切正常

@yunyaCode
Copy link

我也是,有人解决了吗?只能截取本应用,其他应用直接退到后台

@ielgnaw
Copy link

ielgnaw commented Aug 5, 2024

重置权限后,重新打开 app

tccutil reset ScreenCapture

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants