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

Not Compatible with Wayland's Security #16

Open
nmcbride opened this issue Oct 23, 2024 · 1 comment
Open

Not Compatible with Wayland's Security #16

nmcbride opened this issue Oct 23, 2024 · 1 comment

Comments

@nmcbride
Copy link

On Wayland systems, the app needs to trigger the system dialog to grant permissions to it to capture the screen.

Traceback (most recent call last):
  File "app/app.py", line 5, in <module>
    from core import Core
  File "/tmp/_MEIOf6fGB/core.py", line 7, in <module>
    from interpreter import Interpreter
  File "/tmp/_MEIOf6fGB/interpreter.py", line 5, in <module>
    import pyautogui
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "pyautogui/__init__.py", line 246, in <module>
  File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
  File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
  File "mouseinfo/__init__.py", line 223, in <module>
  File "Xlib/display.py", line 80, in __init__
  File "Xlib/display.py", line 62, in __init__
  File "Xlib/protocol/display.py", line 129, in __init__
Xlib.error.DisplayConnectionError: Can't connect to display ":0": b'Authorization required, but no authorization protocol specified\n'
[2281152] Failed to execute script 'app' due to unhandled exception!

@mak448a
Copy link

mak448a commented Dec 5, 2024

If this helps, I think you need to use pipewire to do screen sharing.

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

2 participants