Skip to content

Fix Cmdpal launch without admin mode - both runner and setting. #39494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 16, 2025

Conversation

yeelam-gordon
Copy link
Contributor

Summary of the Pull Request

Previous PR haven't fully test yet.
This PR will address both runner and setting launching cmdpal.

PR Checklist

@yeelam-gordon yeelam-gordon requested review from vanzue and Copilot May 16, 2025 09:32
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes the Cmdpal launch issue by updating both the runner and settings functionality to launch Cmdpal without admin mode.

  • Updated LaunchApp method to accept command line arguments.
  • Adjusted CmdPal settings and module interface usage to launch via explorer.exe with proper argument separation.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/settings-ui/Settings.UI/SettingsXAML/Views/CmdPalPage.xaml.cs Modified the LaunchApp signature and updated the settings deeplink click handler to pass arguments separately.
src/modules/cmdpal/CmdPalModuleInterface/dllmain.cpp Updated the launch command for background execution and modified the RetryLaunch method to include command arguments.

@yeelam-gordon yeelam-gordon merged commit 0e9c5a8 into main May 16, 2025
16 checks passed
@yeelam-gordon yeelam-gordon linked an issue May 16, 2025 that may be closed by this pull request
yeelam-gordon added a commit that referenced this pull request May 19, 2025
* Change to path and args

* Fix both Setting launch and runner launch
@yeelam-gordon yeelam-gordon self-assigned this Jun 9, 2025
@yeelam-gordon yeelam-gordon added the Product-Command Palette Refers to the Command Palette utility label Jun 9, 2025
@yeelam-gordon yeelam-gordon added this to the PowerToys 0.91 milestone Jun 9, 2025
sadirano pushed a commit to sadirano/PowerToys that referenced this pull request Jun 10, 2025
…osoft#39494)

* Change to path and args

* Fix both Setting launch and runner launch
yeelam-gordon added a commit that referenced this pull request Jun 20, 2025
* Change to path and args

* Fix both Setting launch and runner launch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product-Command Palette Refers to the Command Palette utility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CmdPal silently runs/launches other apps as Administrator (no UAC prompt) if PowerToys starts as Administrator Extensions are not working
3 participants