Skip to content
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

Run a profile as administrator without re-launching Terminal app as admin #12885

Closed
vadimkantorov opened this issue Apr 11, 2022 · 6 comments
Closed
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@vadimkantorov
Copy link

vadimkantorov commented Apr 11, 2022

This likely has been discussed before, but I didn't find an existing issue.

If Windows/PowerShell sudo is implemented (#146), the need for this is less pertinent. My usecase was opening terminal and hitting wsl --install only to find that I need to re-launch Terminal as admin. It would be nice to allow to re-launch an existing/opened tab as admin without figuring out how to re-launch the whole terminal as admin

Another way may be a button Re-launch as admin (as offered by Process Explorer) - but this is worse compared to launching a specific profile as admin

@vadimkantorov vadimkantorov added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Apr 11, 2022
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Apr 11, 2022
@zadjii-msft
Copy link
Member

Sorry, but we won't be allowing mixed tabs at different elevation levels. There's more details in https://github.com/microsoft/terminal/blob/main/doc/Niksa.md#elevation, as well as in Elevation Quality of Life Improvements.

In 1.13, you can ctrl+click on a profile to launch it in a new elevated window automatically:
image

/dup #632

@ghost
Copy link

ghost commented Apr 11, 2022

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Apr 11, 2022
@vadimkantorov
Copy link
Author

vadimkantorov commented Apr 11, 2022

My main issue is discoverability / UX here.

  1. First-time run of Win11
  2. Open Terminal+PowerShell, run wsl --install, get a "not elevated enough" error argh need to remember how to run Terminal in elevated mode. Maybe the error message could remind of this e.g. say press Win+X and select Windows Terminal +Admin. Or maybe Terminal could detect this error message and highlight it (like it does with links) and allow clicking on it for re-launch as admin. Or maybe the error message could include a special hyper link https://ms-terminal/relauch-as-admin that could be highlighted and actionable
  3. Tooltips are not solving discoverability in full (especially if you're not knowing beforehand where to hover for this message to appear). Maybe worth to have a fully-fledged item in the New-Tab that would in fact launch the profile as admin, but in a new Terminal
  4. Having sudo implemented would also help this particular usecase with WSL installation

Related: #1032

@vadimkantorov
Copy link
Author

vadimkantorov commented Apr 29, 2022

Related: #12985 (comment)

@zadjii-msft so it is possible?

@zadjii-msft
Copy link
Member

Ah. To clarify, we're not mixing different permission levels in the same window. I was under the impression that this thread was asking for "I want an admin version of {current profile} in the same window". I'm using that one for "I want an admin version of {current profile} in a new window". Maybe it just took my brain two weeks to tease out the marginal difference between the two 😅

@vadimkantorov
Copy link
Author

vadimkantorov commented Apr 29, 2022

You are right, originally I wanted to have re-launch in the same window (or some sort of sudo), but re-launch in a different window from within the app is still more useful than having to remember how to do that in Windows :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

2 participants