Skip to content

Settings service update - #8439

Merged
sithlord48 merged 4 commits into
masterfrom
settingsServiceUpdate
Apr 7, 2025
Merged

Settings service update#8439
sithlord48 merged 4 commits into
masterfrom
settingsServiceUpdate

Conversation

@sithlord48

@sithlord48 sithlord48 commented Apr 2, 2025

Copy link
Copy Markdown
Member

fixes: #8350

  • Removes Settings::Core::ElevateMode and sets Daemon::Elevate Instead (default: true)
  • New Settings: Settings::Core::StopOnDeskSwitch (default: false)

You can only select one of the option

@sithlord48
sithlord48 requested a review from nbolton April 2, 2025 22:10
@sithlord48 sithlord48 self-assigned this Apr 3, 2025
@sithlord48 sithlord48 added ✨ enhancement A suggested change to improve functionality 🩹 fix This PR fixes a reported bug labels Apr 3, 2025
@nbolton

nbolton commented Apr 3, 2025

Copy link
Copy Markdown
Member

Settings::Core::StopOnDeskSwitch

I'm wondering if we need this [setting] at all. I'll do some testing but after thinking about this over the last few days, I suspect it might be redundant now that we're not elevating as needed. IIRC, I added it to kill the process so it could auto switch between being elevated or not. If we're making elevation manual and removing the auto switch (which I think we should) then, I think there should be no reason for the core to die when the desk switches... I could be totally wrong though so let me do some experimenting/digging.

@sithlord48

Copy link
Copy Markdown
Member Author

Sounds good lmk and i will remove it we don't need it

@sithlord48
sithlord48 force-pushed the settingsServiceUpdate branch from d2377cb to bfd704c Compare April 3, 2025 16:17
@sithlord48 sithlord48 modified the milestone: v1.21.2 Apr 3, 2025
@sithlord48
sithlord48 force-pushed the settingsServiceUpdate branch from bfd704c to fbc9168 Compare April 5, 2025 20:29

@nbolton nbolton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TL;DR: We could land this but the checkbox wording and behavior should change. If we keep the hacky 'stop on desk switch' behavior then we need to explain how it works and that it will still elevate the process (as needed) if selected.

Removing it is an option but this will create dead code that we should remove, possibly in a new PR. The code we'd need to remove would be in the watchdog:

if (elevatedToken || m_session.isProcessInSession("logonui.exe", nullptr)) {

It's one of those... 'clever but stupid' features.

Comment thread src/lib/gui/dialogs/SettingsDialog.ui Outdated
Comment thread src/lib/gui/dialogs/SettingsDialog.ui Outdated
@sithlord48
sithlord48 force-pushed the settingsServiceUpdate branch from fbc9168 to b992386 Compare April 6, 2025 14:18
@sithlord48
sithlord48 force-pushed the settingsServiceUpdate branch from b992386 to 93aaee2 Compare April 6, 2025 14:19
@sithlord48
sithlord48 requested a review from nbolton April 6, 2025 14:22
@sithlord48
sithlord48 enabled auto-merge (rebase) April 6, 2025 14:55
@sithlord48 sithlord48 mentioned this pull request Apr 6, 2025
@sithlord48
sithlord48 merged commit a04568b into master Apr 7, 2025
@sithlord48
sithlord48 deleted the settingsServiceUpdate branch April 7, 2025 10:09
@nbolton

nbolton commented Apr 7, 2025

Copy link
Copy Markdown
Member

FTR, we decided to remove the --stop-on-desk-switch feature in a later PR:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ enhancement A suggested change to improve functionality 🩹 fix This PR fixes a reported bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Split Windows daemon elevate combobox into two checkboxes

2 participants