guilryder / clavier-plus

Clavier+ keyboard shortcuts manager for Windows
https://gryder.org/software/clavier-plus/
GNU General Public License v3.0
326 stars 21 forks source link

UWP application #6

Closed re2cc closed 4 years ago

re2cc commented 4 years ago

Can you add options to open an UWP or aplication of store?

guilryder commented 4 years ago

Good question! Hopefully yes, but it doesn't look straightforward so I will need to research first.

re2cc commented 4 years ago

Hey!, I find a form... It is possible using some commands with powershell, here is the tutorial I followed, maybe you could do the automatic process in the program: https://www.addictivetips.com/windows-tips/open-uwp-apps-from-command-line-windows-10/

guilryder commented 4 years ago

Starting an app given its ID is indeed not too difficult.

Listing all the available apps with their id, name, and icon so Clavier+ can show them in a menu with their icon is harder.

Listing the contents of AppsFolder works, but returns lots of non-UWP apps too. The System.Link.TargetParsingPath property seems empty if and only if the app is UWP.

Then combining SHGetIDListFromObject + SHGetFileInfo allows to retrieve the icon.

I have a working prototype; working on finalizing it.

guilryder commented 4 years ago

I have finalized the prototype into a working version, and also fixed a few bugs in the Windows shortcuts resolution involved in Add > Program. I still need to test thoroughly and release the next version.

Beta version binaries: http://utilfr42.free.fr/dn/beta/ClavierSetup64.exe http://utilfr42.free.fr/dn/beta/ClavierSetup32.exe http://utilfr42.free.fr/dn/beta/Clavier64.zip http://utilfr42.free.fr/dn/beta/Clavier32.zip

re2cc commented 4 years ago

Thanks!