Screenshots functionality
Closed, ResolvedPublic

Description

Functionality to take screenshots is needed.

With the patch merged in the kwin, it is possible to take screenshot using the qdbus.

$ cat /proc/`pidof plasmashell`/environ | tr '\0' '\n' | grep -i DBUS | sed 's/^/export /g' > /tmp/env
$ source /tmp/env
$ qdbus org.kde.KWin /Screenshot org.kde.kwin.Screenshot.screenshotFullscreen

This needs better integration with user interface, probably icon in top drawer?

z3ntu added a subscriber: z3ntu.Sep 10 2019, 9:02 AM

Taking screenshots with a key combo is also important, e.g. vol down & power for a few seconds like it's done in Android

lnj claimed this task.Feb 4 2020, 8:52 PM
lnj closed this task as Resolved.Feb 6 2020, 8:52 PM

Basics are done, but there's a KWin bug (at least on the pinephone) that only saves a quarter of the screen - probably some dpi issue

lnj reopened this task as Open.Feb 6 2020, 8:53 PM
lnj moved this task from PM 1.0 to Done on the Plasma: Mobile board.
lnj edited projects, added Plasma: Mobile; removed Plasma: Mobile (PM 1.0).
lnj added a comment.Feb 9 2020, 8:34 PM

The screenshot bug is still not solved and reproducable on the pinephone and the nexus 5x, but not on desktop systems with high dpi scaling.
Also taking a screenshot using screenArea and QGuiApplication::primaryScreen()->size() doesn't seem to work (still only a quarter of the screen), so it could even be a Qt bug?

bshah added a comment.Mar 30 2020, 4:35 AM

Can we please report bug to KWin bug tracker for starter, and then mark this as closed? Since Plasma Mobile side is essentially done.

bshah closed this task as Resolved.Mar 29 2021, 7:39 AM