Open timo95 opened 3 years ago
v0.2 fixed some things related to the app name, so it's not usually the exe anymore.
I think supporting both exe and app name makes sense for Windows. This is a minor change to switcher.
Launch has never supported the overrides. Enumerating the list of applications was a real hassle on Windows; I didn't see a way to grab the exe path with the existing mechanism either.
Maybe some fresh eyes could find an option I missed here? Dragon also somehow launches apps without the start menu, which would be great too.
I don't know if it contains all apps, but maybe you can parse the start menu shortcuts C:\ProgramData\Microsoft\Windows\Start Menu
Each shortcut contains the path to the executable and a pretty name. It even includes necessary flags to launch it directly.
I believe I tried that one, and it missed a lot of apps. If we can get an IShellItem2 (https://docs.microsoft.com/en-us/windows/win32/api/shobjidl_core/nn-shobjidl_core-ishellitem2) in python, we may be able to do better
For example with Slack (the csv contains
lock, slack.exe
).launch slack
andfocus slack
work without problem, butlock
doesn't:launch lock
is not recognized. It always results in similar sounding apps or none at all.focus lock
while Slack is running results in the following exception:Changing
slack.exe
toSlack
fixesfocus
, but notlaunch
.These two are btw not needed anymore. They are recognized without the override: