Bug 435781 - Allow screenshots to be taken without pop-up dialog.
Summary: Allow screenshots to be taken without pop-up dialog.
Status: RESOLVED FIXED
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: Jan Grulich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-15 16:25 UTC by Gena
Modified: 2021-05-02 04:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gena 2021-04-15 16:25:07 UTC
SUMMARY

At the moment, when creating a screenshot via `xdg-desktop-portal`, a confirmation dialog appears. If you specify `interactive = false` (default), then the dialog will still appear with confirmation of saving the captured screenshot.


SUGGESTION

It would be nice not to display this dialog with the `interactive = false` option, as GNOME does.
For example, in my application, the user needs to select a screen area from which to recognize the text. With the current behavior, the user, after activating the recognition, needs to click the "Save" button in the dialog that appears before displaying the selection of the area. This behavior is not very obvious to the user.
Comment 1 Gena 2021-05-02 04:02:32 UTC
Git commit 72cd34252c3954a9f6ae77b23bfc9a752d312f22 by Hennadii Chernyshchyk.
Committed on 01/05/2021 at 18:44.
Pushed by meven into branch 'master'.

Do not display screenshot dialog if interactive is set to false

M  +4    -2    src/screenshot.cpp
M  +40   -19   src/screenshotdialog.cpp
M  +6    -2    src/screenshotdialog.h

https://invent.kde.org/plasma/xdg-desktop-portal-kde/commit/72cd34252c3954a9f6ae77b23bfc9a752d312f22