feat: 起動時に管理者権限を要求する (uacPrivileges: administrator)#17
Merged
Conversation
Closed
… checks Agent-Logs-Url: https://github.com/jiuya/locksun/sessions/6cdd290e-cfef-413e-bcc3-524041e41a38 Co-authored-by: jiuya <6884687+jiuya@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Require administrator permission at startup for core functionality
feat: 起動時に管理者権限を要求する (uacPrivileges: administrator)
Apr 14, 2026
- build.rs: リリースビルドのみ requireAdministrator マニフェストを埋め込む デバッグビルドで適用すると cargo run が os error 740 で失敗するため - locksun.exe.manifest: requireAdministrator マニフェストファイルを追加 - tauri.conf.json: uacPrivileges: administrator を削除(build.rs で制御) - renderer/mod.rs: render_to_bytes() 関数を追加 - commands/mod.rs, scheduler/mod.rs: enhance_image の引数を所有権移転に変更
Owner
|
@copilot resolve the merge conflicts in this pull request |
…tation from main Co-authored-by: jiuya <6884687+jiuya@users.noreply.github.com>
Contributor
Author
Resolved. The only conflict was in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HKLM\...\PersonalizationCSPへの書き込みには管理者権限が必要だが、アプリは権限なしで起動を続け、ロックスクリーン変更が毎サイクル失敗していた。Changes
tauri.conf.json—bundle.windowsにuacPrivileges: "administrator"を追加。起動時に常に UAC プロンプトを表示し、管理者権限を保証するlib.rs— 起動時のcheck_permission()チェックブロックを削除(UAC で常に管理者として動作するため不要)scheduler/mod.rs— 権限エラー専用の Windows 固有ブランチを削除し、エラー処理をlog::error!に統一commands/mod.rs— 不要になったAppState.permission_notified: Mutex<bool>フィールドとMutexインポートを削除