turanmahmudov / PockIt2

New Unofficial Pocket Client for Ubuntu "PockIt"
GNU General Public License v3.0
16 stars 10 forks source link

Keep screen on while performing full sync #25

Closed krnekhelesh closed 8 years ago

krnekhelesh commented 8 years ago

As you mentioned, that PockIt gets suspended during full sync which essentially pauses the sync. I would recommend (as a temporary measure) to keep the screen always on and inform the user that sync only happens when pockit is open and while the sync is screen in on would help.

There is an apparmor permission allowing apps to keep screen on if that helps.

turanmahmudov commented 8 years ago

I don't want to keep screen open. If user forget to lock screen, the app would drain battery

krnekhelesh commented 8 years ago

No but that's the thing, if the user locks the screen, then your first time sync process is suspended as well which is bad for the user. The screen will be only on when the first time sync process in in progress. After that it can be turned the screen off.

Keeping the screen on for a few minutes won't drain that much battery compared to the inconvenient freezing of the sync process where the user needs to keep the screen on by himself.

turanmahmudov commented 8 years ago

I added new commit. Please check it

krnekhelesh commented 8 years ago

Yup looks good. Nice work!