Failed to create screenshot on Pinta/Windows

Bug #2047919 reported by grofaty
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
Triaged
Undecided
Unassigned

Bug Description

Latest Pinta 2.2-dev from master repository on Windows 10: https://github.com/PintaProject/Pinta/actions/runs/7378423225/artifacts/1141941547

1. Hamburger menu | File | New Screnshoot and error appears: "Failed to take screenshot". See attachment.

Additional test:
I have tested on Pinta 2-2-dev on master on Ubuntu 23.10 and screenshot works fine. It looks like Windows specific problem.

Tags: gtk4
Revision history for this message
grofaty (grofaty) wrote :
Revision history for this message
Cameron White (cameronwhite91) wrote :

Ah yes, this still needs to be re-implemented for Windows in the GTK4 builds.
GTK4 removed the APIs we used to use for taking screenshots, so we now need to hook into something platform-specific which we can launch and then bring the screenshot back into Pinta (on Linux this is the screenshot portal, and on macOS the system screen capture utility)

Changed in pinta:
status: New → Triaged
tags: added: gtk4
Revision history for this message
Cameron White (cameronwhite91) wrote :

I'm putting this on the 2.2 milestone for now so I remember to do some investigation of this (now that we actually have a working GTK4 build on Windows). But I'm probably okay with bumping this to 2.3 since it's not too hard to use another application to take a screenshot first

Changed in pinta:
milestone: none → 2.2
Revision history for this message
grofaty (grofaty) wrote :

What I like about Pinta's snapshot is some, set time to e.g. 5 seconds, move to some other program, open some menus etc and snapshot is automatically performed. Snapshot tools sometimes closes down some menu options etc. when Print-Screen key is pressed.

BTW, I remember screenshot used to also record mouse icons, but it doesn't anymore in Pinta 2.2-dev on Linux and also not on Pinta 2.1.1-flatpak. This is separate issue.

I am fine this feature is postponed to 2.3, if it is show stopper.

Changed in pinta:
milestone: 2.2 → 2.3
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.