Flowtime icon indicating copy to clipboard operation
Flowtime copied to clipboard

Lock Screen option

Open prokoudine opened this issue 2 years ago • 1 comments

Personally, I find it convenient to have the screen locked for the duration of the break time (GNOME Pomodoro has this option) to get me out of the desk. The lock could be bypassed, but it would be an extra action.

Do you think it's something you would want to implement?

prokoudine avatar Aug 09 '22 11:08 prokoudine

Hello, thanks for your suggestion! I think it is a good idea, but Flowtime is limited as it is distributed as a Flatpak, and AFAIK there is no way to activate the screensaver. If a screensaver portal comes to existence, I will definitely implement this feature.

Diego-Ivan avatar Aug 10 '22 01:08 Diego-Ivan

Wait, method name='SetActive' from https://github.com/flatpak/ppa-xdg-desktop-portal-gtk/blob/ppa/focal/data/org.freedesktop.ScreenSaver.xml is not what you need?

prokoudine avatar Dec 16 '22 21:12 prokoudine

Thanks! I will take a look into it

Diego-Ivan avatar Dec 16 '22 21:12 Diego-Ivan

is not what you need?

This is not the documentation of a flatpak portal but a DBus API used by the portal implementation.

It would probably work if you break through the sandbox with something like --talk-name=org.freedesktop.ScreenSaver

sophie-h avatar Oct 07 '23 20:10 sophie-h

@prokoudine This feature will finally land in 6.0 🥳. Thanks @sophie-h for the hint I needed for quite some time 😄

Diego-Ivan avatar Oct 25 '23 23:10 Diego-Ivan