normcap
normcap copied to clipboard
normcap not working on Ubuntu 24.10
What happened?
I'm running normcap from flathub
seems error is related with qt libraries
How did you install NormCap?
None
Operating System + Version?
No response
[Linux only] Display Server (DS) + Desktop environment (DE)?
No response
Debug log output?*
`(base) ferran@z590i:~/Documents/PersonalPackages/normcap$ flatpak run com.github.dynobo.normcap
F: Not sharing "/usr/share" with sandbox: Path "/usr" is reserved by Flatpak
F: Not sharing "/usr/share/themes" with sandbox: Path "/usr" is reserved by Flatpak
10:08:10 - ERROR - normcap.screengrab.handlers.dbus_portal:127 - Permission denied for Screenshot via xdg-portal! Message: <PySide6.QtDBus.QDBusMessage(type=Signal, service=":1.72", path="/org/freedesktop/portal/desktop/request/1_362/normcap_gcfaeefd", interface="org.freedesktop.portal.Request", member="Response", signature="ua{sv}", contents=(2, [Argument: a{sv} {}]) ) at 0x7ba40c466900>
10:08:10 - WARNING - normcap.screengrab.permissions:202 - Screenshot permissions on Wayland seem missing.
Traceback (most recent call last):
File "/app/lib/python3.11/site-packages/normcap/screengrab/permissions.py", line 200, in _dbus_portal_has_screenshot_permission
result = dbus_portal.capture()
^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/normcap/screengrab/handlers/dbus_portal.py", line 242, in capture
image = _synchronized_capture(interactive=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/normcap/screengrab/handlers/dbus_portal.py", line 198, in _synchronized_capture
raise error
PermissionError: Permission denied for Screenshot via xdg-portal! Message: <PySide6.QtDBus.QDBusMessage(type=Signal, service=":1.72", path="/org/freedesktop/portal/desktop/request/1_362/normcap_gcfaeefd", interface="org.freedesktop.portal.Request", member="Response", signature="ua{sv}", contents=(2, [Argument: a{sv} {}]) ) at 0x7ba40c466900>
10:08:12 - ERROR - normcap:181 - [QT] qtfatalmsg - cannot mix incompatible qt library (6.7.3) with this library (6.7.0)
`
Same error. Can't get AppImage or Flatpak to work on Ububtu 24.10.
Still same? no fixes yet?
I've solved it, just don't remember how
It crashes after first screenshot/OCR, yet is enough like this :: if I want a 2nd OCR I open again the app
I needed to install a library, and after I've installed it I got a message on the first run asking for "capturing screen" permission
I'm on Ubuntu 24.04 with the same debug information. The Appimage works though.
AppImage wasn't working when I had flatpak installed as well. I removed both and then downloaded AppImage again. it's working now.
NixOS user here, with the same issue:
$ flatpak run com.github.dynobo.normcap
18:35:31 - ERROR - normcap.screengrab.handlers.dbus_portal:127 - Permission denied for Screenshot via xdg-portal! Message: <PySide6.QtDBus.QDBusMessage(type=Signal, service=":1.65", path="/org/freedesktop/portal/desktop/request/1_1299/normcap_daggieie", interface="org.freedesktop.portal.Request", member="Response", signature="ua{sv}", contents=(2, [Argument: a{sv} {}]) ) at 0x7f0a8341a240>
18:35:31 - WARNING - normcap.screengrab.permissions:202 - Screenshot permissions on Wayland seem missing.
Traceback (most recent call last):
File "/app/lib/python3.11/site-packages/normcap/screengrab/permissions.py", line 200, in _dbus_portal_has_screenshot_permission
result = dbus_portal.capture()
^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/normcap/screengrab/handlers/dbus_portal.py", line 242, in capture
image = _synchronized_capture(interactive=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/normcap/screengrab/handlers/dbus_portal.py", line 198, in _synchronized_capture
raise error
PermissionError: Permission denied for Screenshot via xdg-portal! Message: <PySide6.QtDBus.QDBusMessage(type=Signal, service=":1.65", path="/org/freedesktop/portal/desktop/request/1_1299/normcap_daggieie", interface="org.freedesktop.portal.Request", member="Response", signature="ua{sv}", contents=(2, [Argument: a{sv} {}]) ) at 0x7f0a8341a240>
18:35:32 - ERROR - normcap:181 - [QT] qtfatalmsg - cannot mix incompatible qt library (6.7.3) with this library (6.7.1)
NormCap ver. 0.5.9 Gnome 47 Wayland
Same issue on Ubuntu 25.04 and normcap installed as a Flatpak.
flatpak run com.github.dynobo.normcap
10:26:07 - ERROR - normcap.screengrab.handlers.dbus_portal:127 - Permission denied for Screenshot via xdg-portal! Message: <PySide6.QtDBus.QDBusMessage(type=Signal, service=":1.86", path="/org/freedesktop/portal/desktop/request/1_432/normcap_hfhfhcba", interface="org.freedesktop.portal.Request", member="Response", signature="ua{sv}", contents=(2, [Argument: a{sv} {}]) ) at 0x728fb081eb80>
10:26:07 - WARNING - normcap.screengrab.permissions:202 - Screenshot permissions on Wayland seem missing.
Traceback (most recent call last):
File "/app/lib/python3.11/site-packages/normcap/screengrab/permissions.py", line 200, in _dbus_portal_has_screenshot_permission
result = dbus_portal.capture()
^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/normcap/screengrab/handlers/dbus_portal.py", line 242, in capture
image = _synchronized_capture(interactive=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/lib/python3.11/site-packages/normcap/screengrab/handlers/dbus_portal.py", line 198, in _synchronized_capture
raise error
PermissionError: Permission denied for Screenshot via xdg-portal! Message: <PySide6.QtDBus.QDBusMessage(type=Signal, service=":1.86", path="/org/freedesktop/portal/desktop/request/1_432/normcap_hfhfhcba", interface="org.freedesktop.portal.Request", member="Response", signature="ua{sv}", contents=(2, [Argument: a{sv} {}]) ) at 0x728fb081eb80>
10:26:08 - ERROR - normcap:181 - [QT] qtfatalmsg - cannot mix incompatible qt library (6.7.3) with this library (6.7.1)
Did you provide the permission to take screenshots?
Did you provide the permission to take screenshots?
It doesn't ask for it:
On the first screen it's only "notifications" and "run in background", on the second one - "network access"
I see people still with problems, for me now is working :: Only I've done is keep updating my system.
It doesn't ask for it:
Strange. Reinstall it and it should ask you for the permission on the first start, at least it was the case for me on Ubuntu + Flatpak version.
Reinstall it and it should ask you for the permission on the first start
I literally just installed it today to make those screenshots, because it was uninstalled when I've discovered that it's not working:)
Can you try granting the permissions manuall?
For Flatpak you can do this with:
flatpak permission-set screenshot screenshot com.github.dynobo.normcap yes
For AppImage on most Wayland systems you can do this with:
dbus-send --print-reply=literal \
--session --dest=org.freedesktop.impl.portal.PermissionStore \
/org/freedesktop/impl/portal/PermissionStore \
org.freedesktop.impl.portal.PermissionStore.SetPermission \
string:'screenshot' boolean:true string:'screenshot' \
string:'com.github.dynobo.normcap' array:string:['yes']
If you are interested in more information about the unfortunate situation regarding screenshot permissions (and debugging tipps), please read this FAQ.
Can you try granting the permissions manuall?
do you think it's the proper way how the app should be working on the user-side?
do you think it's the proper way how the app should be working on the user-side?
Definitely not! As explained in the linked FAQ, I'm totally aware of the issues with Wayland, it's just very hard to do right, especially with limited resources as an open source project.
Nevertheless, I always strive for improvement, and also welcome any contribution. Even feedback like yours is really valuable!
I literally just installed it today to make those screenshots, because it was uninstalled when I've discovered that it's not working:)
Could you please try again with the new v0.6.0 release? It includes some changes, which should help with automatically requesting the screenshot permissions, at least on some systems.