Giter VIP home page Giter VIP logo

Comments (8)

jasiralavi avatar jasiralavi commented on June 2, 2024 1

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.

image

image

from normcap.

jasiralavi avatar jasiralavi commented on June 2, 2024

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.

quebexer avatar quebexer commented on June 2, 2024

@jasiralavi thanks for the tip. I will install the AppImage version.

from normcap.

dynobo avatar dynobo commented on June 2, 2024

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:

from normcap.

dynobo avatar dynobo commented on June 2, 2024

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 avatar jasiralavi commented on June 2, 2024

@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.

dynobo avatar dynobo commented on June 2, 2024

This problem should be mitigated with the latest release. Could you please confirm?

from normcap.

dynobo avatar dynobo commented on June 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.