Functionality to take screenshots is needed.
Description
Details
- Differential Revisions
- D16802: effects: attempt to screenshot on OpenGL ES 2.0 instead of failing
Status | Assigned | Task | ||
---|---|---|---|---|
Resolved | None | T6926 Shell Functions | ||
Resolved | lnj | T10011 Screenshots functionality |
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?
Taking screenshots with a key combo is also important, e.g. vol down & power for a few seconds like it's done in Android
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
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?
Can we please report bug to KWin bug tracker for starter, and then mark this as closed? Since Plasma Mobile side is essentially done.