Skip to content

Bug: schedule-ignore-on-battery does not properly set Windows Task Scheduler value #595

@ekcom

Description

@ekcom

When schedule-ignore-on-battery is set to false, it is expected that the Windows Task Scheduler option "Start the task only if the computer is on AC power" would be unchecked, but it is checked by default.
This results in the task not being executed when on battery power, despite this configuration setting's value.

The option to "Start the task only if the computer is on AC power" checked by default

Docs for TaskScheduler's TaskSettings.DisallowStartIfOnBatteries

It looks like this is currently hardcoded to true:

DisallowStartIfOnBatteries: true,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions