Skip to content

Windows: make administrator rights an opt-in setting - #22

Merged
BrenOne merged 1 commit into
mainfrom
feature/admin-rights-option
Nov 5, 2026
Merged

BrenOne merged 1 commit into
mainfrom
feature/admin-rights-option

Conversation

@BrenOne

@BrenOne BrenOne commented Nov 3, 2026

Copy link
Copy Markdown
Owner

By default DynamicLight now runs without administrator rights (30 FPS cap) and Launch at login uses the per-user Run key. Settings → Startup → "Run with administrator rights" (or the button under the FPS choice) registers the Task Scheduler tasks with one UAC prompt and restarts elevated; turning it off removes them. Launch at login moves between the Run key and the login task. Unavailable for standard users.

The installer asks "Start DynamicLight with Windows?" once per user and writes the Run key, without UAC or tasks. Existing task setups keep working.

is_elevated now uses TokenElevation instead of the deprecated IsUserAnAdmin.

By default DynamicLight now runs without administrator rights (30 FPS cap)
and Launch at login uses the per-user Run key. Settings → Startup →
"Run with administrator rights" (or the button under the FPS choice)
registers the Task Scheduler tasks with one UAC prompt and restarts
elevated; turning it off removes them. Launch at login moves between the
Run key and the login task. Unavailable for standard users.

The installer asks "Start DynamicLight with Windows?" once per user and
writes the Run key, without UAC or tasks. Existing task setups keep working.

is_elevated now uses TokenElevation instead of the deprecated IsUserAnAdmin.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@BrenOne
BrenOne merged commit 1b03191 into main Nov 5, 2026
7 checks passed
@BrenOne
BrenOne deleted the feature/admin-rights-option branch November 5, 2026 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant