flyingpie / windows-terminal-quake

Turn any app into a Quake-style toggleable app.
https://wtq.flyingpie.nl
MIT License
573 stars 38 forks source link

Running it with administrative permission #116

Open Kipung opened 1 year ago

Kipung commented 1 year ago

Hi,

Thank you for working on this awesome project. I recently started using this, but is there a way for me to change the settings to run the toggling wt with administrative permission? (AND very preferably if possible without the prompt of asking the permission popup)

I know I can go to WT profile setting to run with administrative permission, but that did not work smoothly...

So, when I try to run this without being it elevated, it works totally fine, but I would like to access administrative stuff easily...

I hope this makes sense.

Thank you!

flyingpie commented 1 year ago

@Kipung Thank you for reaching out!

So if I understand correctly, you want Windows Terminal to be run as administrator, when it's started through wtq, correct?

I think that's not much of a problem, but hiding the UAC thing probably is, since that would kinda defeat the purpose of UAC. Though maybe if wtq itself is run as admin, I'd need to test that.

Kipung commented 1 year ago

Yeah, without any extra setup, if you can make a feature that allows users to run wtq with administrator, that would be awesome. And hopefully without the popup.

This is kind of side note, but to run it with the startup you would just make a shortcut to the startup folder right?

flyingpie commented 1 year ago

@Kipung Dropping a shortcut under the "Startup" folder should work, yes. Perhaps it might as well be easiest to just toggle the admin flag in the shortcut, since starting wtq as admin would also start Windows Terminal as admin.

That would pop a UAC popup when starting wtq, but I don't think you can avoid that, since warning you that something wants to run as admin is the whole point of UAC.

Would that work for you, or would you rather have wtq run as normal user, and start Windows Terminal as admin from there?