Comments (8)
I installed the flatpak through the gnome Software app.
There was a pop saying I'll need to give permission to manage screenshots, after clicking Ok.
However, I didn't see a second popup /window for that. It went straight to the 'how to use' startup window.
Anyways, it's working ok now.
The language download is working ok as well.
Thank you once again for the great app!
Here are the screenshots of the two windows, just in case anyone's curious.
from normcap.
Same here on new install of Ubuntu 23.10 / gnome45 / wayland.
See output below.
Appimage is working without issues, but cannot add additional languages with that. Getting download error.
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=normcap com.github.dynobo.normcap
10:36:26 - ERROR - normcap.screengrab.dbus_portal:103 - Error code 2 received from xdg-portal!
10:36:26 - CRITICAL - normcap:161 - Uncaught exception! Quitting NormCap!
System:
{ 'cli_args': '/app/bin/normcap',
'config_directory': PosixPath('/home/REDACTED/.var/app/com.github.dynobo.normcap/config/normcap'),
'desktop_environment': <DesktopEnvironment.GNOME: 1>,
'display_manager_is_wayland': True,
'envs': {'LD_LIBRARY_PATH': '', 'TESSDATA_PREFIX': '/app/share'},
'is_briefcase_package': False,
'is_flatpak_package': True,
'normcap_version': '0.4.4',
'platform': 'linux',
'pyside6_version': '6.5.1',
'qt_library_path': '/usr/share/runtime/lib/plugins, '
'/app/lib/python3.10/site-packages/PySide6/Qt/plugins, '
'/usr/bin',
'qt_version': '6.5.1',
'ressources_path': PosixPath('/app/lib/python3.10/site-packages/normcap/resources'),
'screens': [ Screen(is_primary=True,
device_pixel_ratio=1.0,
rect=Rect(left=0, top=0, right=1920, bottom=1080),
index=0,
screenshot=None)],
'tessdata_path': PosixPath('/home/REDACTED/.var/app/com.github.dynobo.normcap/config/normcap/tessdata'),
'tesseract_path': PosixPath('/app/bin/tesseract')}
Variables:
'code': 2,
'message': <PySide6.QtDBus.QDBusMessage(type=Signal, service=":1.85", path="/org/freedesktop/portal/desktop/request/1_457/normcap_hbcigbif", interface="org.freedesktop.portal.Request", member="Response", signature="ua{sv}", contents=(2, [Argument: a{sv} {}]) ) at 0x7f07010f3f80>,
'msg': 'Error code 2 received from xdg-portal!',
'self': 'REDACTED'}}
Exception:
IndexError: list index out of range
Traceback:
File "/app/lib/python3.10/site-packages/normcap/screengrab/dbus_portal.py", line 107, in got_signal
uri = str(message).split('[Variant(QString): "')[1]
10:36:26 - CRITICAL - normcap:192 - Please open an issue with the output above on https://github.com/dynobo/normcap/issues
from normcap.
@jasiralavi thanks for the tip. I will install the AppImage version.
from normcap.
Yeah, unfortunately (screenshot) permission management on Wayland is quite broken and constant subject of change. Many 3rd party screenshot tools are suffering from that.
The upcoming NormCap 0.5.0 includes some workarounds to mitigate this issue, but until Wayland, or more precisely, the underlying xdg-desktop-portal protocol, which Wayland implements, gets improved, those workarounds are just tiny band-aids...
Related issues are:
- flatpak/xdg-desktop-portal#950
- flatpak/xdg-desktop-portal#1093
- flatpak/xdg-desktop-portal#1065
- flatpak/xdg-desktop-portal#1070
from normcap.
Appimage is working without issues, but cannot add additional languages with that. Getting download error.
@jasiralavi, would you mind opening a new issue for that download issue, and attach a corresponding debug log? I think a language download error is not on my radar, yet.
(And if I see it correctly, the debug log you shared here is also about the screenshot error, not the download error?)
from normcap.
@jasiralavi, would you mind opening a new issue for that download issue, and attach a corresponding debug log? I think a language download error is not on my radar, yet. (And if I see it correctly, the debug log you shared here is also about the screenshot error, not the download error?)
Sure. Done that here #562
from normcap.
This problem should be mitigated with the latest release. Could you please confirm?
from normcap.
Thanks for the info, @jasiralavi. Interesting, that you didn't see the second confirmation dialog, but I'm glad that it still worked. I also noticed in the past, that the behavior depends a lot on the versions of the desktop environment etc.
Let's hope that the underlying upstream issue in xdg-desktop-portal protocol gets fixed at some point, so we can get rid of this fragile workarounds. Progress on that front is tracked in #320.
I am closing this issue, please re-open it or create a new one if the problem occurs again.
from normcap.
Related Issues (20)
- NormCap AppImage Failing at OCR HOT 8
- [Linux, AWM] Can't OCR From All Monitors HOT 4
- [Linux] Crash due to "Timeout when taking screenshot" HOT 5
- Cannot download other languages. AppImage version HOT 4
- [Windows] Crash immediately after launch (UnicodeDecodeError) HOT 5
- [Linux, FlatPak] provide aarch64/arm64 package HOT 3
- [Linux, FlatPak] Trying to update form Flathub. Corrupted checksum HOT 3
- Windows 10 - locked in screenshot mode HOT 5
- Failing to copy to clipboard with version 0.5.2 on X11 HOT 1
- [Linux, Wayland] Multi monitor issues - Help needed! HOT 1
- Permission denied for Screenshot via xdg-portal! HOT 6
- Crashes on MacOS (CRITICAL - normcap:152) HOT 7
- Sending result to another app HOT 2
- Enhancement Suggestion - Add Customizable Hotkeys (Keyboard Shortcuts) HOT 3
- Arabic instead of English HOT 2
- Flatpak notifications are shown as hidden
- Screenshots are saved in /home/Pictures with every OCR HOT 4
- Looking for PySide/PyQT expert to help with GUI code
- Auto language switch HOT 1
- The application crashes on startup. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from normcap.