-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Add Run as Administrator to Jump List context menu #7715
Comments
The documentation of destinations in a jump list mentions: "Each item in a destination list can be right-clicked for its own shortcut menu." Indeed, in the jump list of File Explorer, each folder in the "Frequent" category has a context menu that includes commands like "Open in Visual Studio", "Open in Windows Terminal", and "Git Bash Here". The jump list of Windows Terminal however contains tasks rather than destinations. There is a rationale for that in the Add Profiles To Jumplist spec. I don't know whether Windows supports custom commands in context menus for tasks in a jump list. |
Yeah, now that you mention it, I don't see any context menu options on any of my other apps on the task bar for items on their Tasks list. So it may not be possible. I hope there's a way around, because in this case it seems to make a lot of sense! |
The best we'll plan to do for now is actually just gonna be to add a "Run as Administrator" (which launches to the default profile, not to any specific profile) task to the top of the list. |
So it's actually at the bottom of the list currently. So users can still run as Administrator with the default profile. I do wish the jump list did have a run as option per profile but that could understandably be a post 2.0 thing. |
We need this, it takes more effort to open terminal every time😒 |
I think the most useful way would be: |
Is there a way I can make a pinned taskbar shortcut which ALWAYS runs as Administrator. I'd like this separately from having it pinned where it doesn't run as admin. I want to use this as a build window which needs to be elevated by default. I can right-click the pinned taskbar icon, and then right-click on "Windows Terminal" to get a "Run as Administrator" option -- which is what I do, but what I really want is an easy way to have a pinned item which opens elevated for a specific item. I can sort of do this by running |
@akrantz when #632 lands (hopefully 1.13), you should be able to mark a profile as always elevated, and you could just click that in the jumplist to open an elevated window with that profile. If you want that as a separate taskbar icon, then yea, |
@zadjii-msft Thanks! I wasn't sure from the various issues whether this was being addressed already, and I'm glad that it is. |
If the task bar does not support custom menus for tasks in a jump list, can Ctrl+click or Ctrl+Shift+click on the jump list item be made to start the profile as elevated? Terminal creates an IShellLink with a ICustomDestinationList::AddUserTasks allows IShellLink and IShellItem, and Terminal creates an IShellLink with a |
Appears to be a duplicate of #4459 |
When I learned that holding Ctrl+Shift and clicking on the taskbar item will launch it elevated, I stopped trying to use right-click to run as Administrator. It still would be nice to have a discoverable option to do that. You can now right-click the taskbar item, then right-click "Windows Terminal" and get a "Run as Administrator" option, which is awkward for requiring two clicks. The other bug linked as a duplicate has lots of discussion about this, so I'll close this one. |
Well it doesn't seem like I can close the issue... |
Wow this totally is a /dup of #4459. I can't believe I ever missed that. |
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! |
Description of the new feature/enhancement
Showing the profiles on the jump list is a great addition. The one thing missing for my workflow is to be able to run the profile as an administrator. I run Terminal as non-admin most of the time (and don't need the jump list for that). But my case for picking a specific profile from the jump list - for a new window - is almost always because I need that one specific profile run as admin.
Proposed technical implementation details (optional)
Not very technical, but what I'd like to see: Add "Run as Administrator" to the context menu of each profile in the jump list, where currently "Open" is the only option.
The text was updated successfully, but these errors were encountered: