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

issue when running normcap on hyprland on arch linux #662

Open
brahimjarallah opened this issue Sep 6, 2024 · 1 comment
Open

issue when running normcap on hyprland on arch linux #662

brahimjarallah opened this issue Sep 6, 2024 · 1 comment

Comments

@brahimjarallah
Copy link

16:44:42 - ERROR - normcap.screengrab.handlers.dbus_portal:102 - No object path received from xdg-portal!
16:44:42 - CRITICAL - normcap:148 - Uncaught exception!
Traceback (most recent call last):
File "/usr/bin/normcap", line 8, in
sys.exit(run())
^^^^^
File "/usr/lib/python3.12/site-packages/normcap/app.py", line 102, in run
app, tray = _prepare()
^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/normcap/app.py", line 95, in _prepare
tray = SystemTray(app, vars(args))
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/normcap/gui/tray.py", line 111, in init
if not self._ensure_screenshot_permission():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/normcap/gui/tray.py", line 402, in _ensure_screenshot_permission
if screengrab.has_screenshot_permission():
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/normcap/screengrab/permissions.py", line 228, in has_screenshot_permission
return _dbus_portal_has_screenshot_permission()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/normcap/screengrab/permissions.py", line 200, in _dbus_portal_has_screenshot_permission
result = dbus_portal.capture()
^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/normcap/screengrab/handlers/dbus_portal.py", line 242, in capture
image = _synchronized_capture(interactive=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.12/site-packages/normcap/screengrab/handlers/dbus_portal.py", line 198, in _synchronized_capture
raise error
RuntimeError: No object path received from xdg-portal!
16:44:42 - CRITICAL - normcap:151 - System info: {'normcap_version': '0.5.8', 'python_version': '3.12.5', 'cli_args': '/usr/bin/normcap', 'is_briefcase_package': False, 'is_flatpak_package': False, 'is_appimage_package': False, 'platform': 'linux', 'desktop_environment': <DesktopEnvironment.HYPRLAND: 6>, 'display_manager_is_wayland': True, 'pyside6_version': '6.7.2', 'qt_version': '6.7.2', 'qt_library_path': '/usr/lib/qt6/plugins, /usr/bin', 'locale': 'DEFAULT', 'config_directory': PosixPath('/home/brahim/.config/normcap'), 'resources_path': PosixPath('/usr/lib/python3.12/site-packages/normcap/resources'), 'tesseract_path': PosixPath('/usr/bin/tesseract'), 'tessdata_path': None, 'envs': {'TESSDATA_PREFIX': None, 'LD_LIBRARY_PATH': None}, 'screens': [Screen(left=0, top=0, right=1365, bottom=767, device_pixel_ratio=1.0, index=0, screenshot=None), Screen(left=1366, top=0, right=3285, bottom=1079, device_pixel_ratio=1.0, index=1, screenshot=None)]}
16:44:42 - CRITICAL - normcap:152 - Unfortunately, NormCap has to be terminated due to an unknown problem.
Please help improve NormCap by reporting this error, including the output above, on
https://github.com/dynobo/normcap/issues/new
Thanks!

@brahimjarallah brahimjarallah changed the title normcap issue on hyprland issue when running normcap on hyprland Sep 6, 2024
@brahimjarallah brahimjarallah changed the title issue when running normcap on hyprland issue when running normcap on hyprland on arch linux Sep 6, 2024
@brahimjarallah
Copy link
Author

help please ! to make it work correctly ! :'(

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

1 participant