elementary / elementary/terminal

Prevent computer from suspending while task is running

Open
#358 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vala
Stars
428
Forks
104
Avg merge
1d 54m
Merged PRs (30d)
2

Description

You start up a long command, and you go for a cup of coffee. When you come back you realized that your computer went to sleep while during this time, and even the long command you ran has timed out. Terminal should be smart enough to prevent your computer from suspending while this is running.

Videos does it with this code: https://github.com/elementary/videos/blob/master/src/Services/Inhibitor.vala, but if we're also going to add this feature, maybe we should add it to Granite to keep all the inhibiting code in one place as well as opening it to app developers (Spice-Up uses the same code to prevent the computer from suspending while presenting)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.