microsoft / WindowsAppSDK

The Windows App SDK empowers all Windows desktop apps with modern Windows UI, APIs, and platform features, including back-compat support, shipped via NuGet.
https://docs.microsoft.com/windows/apps/windows-app-sdk/
MIT License
3.83k stars 321 forks source link

User-defined app execution aliases #3528

Open JaiganeshKumaran opened 1 year ago

JaiganeshKumaran commented 1 year ago

Currently, packaged apps can declare an app execution alias for the process, which enables them to be launched from the command line as it was in the Path environment variable.

I think this is a much superior model because:

However, it is not possible to define an app execution alias for any executable yourself. Most utilities don't come packaged so this is really a significant limitation. Basically, provide a box in the "app execution aliases" settings page where you can type the alias and the executable location and it's possible to type the alias in a terminal to launch the program, without even adding the folder in which its located to the Path environment variable.

DrusTheAxe commented 1 year ago

A package can declare 0-100 <Application>s and each can be declared with AppListEntry="none" so it doesn't show up in applists (e.g. StartMenu). If you do this and define an app execution alias for each does it accomplish your goal?

JaiganeshKumaran commented 1 year ago

A package can declare 0-100 <Application>s and each can be declared with AppListEntry="none" so it doesn't show up in applists (e.g. StartMenu). If you do this and define an app execution alias for each does it accomplish your goal?

I'm aware of that but that's not what this proposal is about. I want to be able to define arbitrary app execution aliases manually for any unpackaged app.