helloSystem / launch

Command line tool to launch applications, will search for .app bundles and .AppDir directories in various directories, and will show launch errors in the GUI
BSD 2-Clause "Simplified" License
16 stars 6 forks source link

Support application names with whitespace #11

Closed probonopd closed 3 years ago

probonopd commented 3 years ago

@xaoseric mentioned that there is an issue.

This works for me:

% launch "PyCharm CE"
(...)
Selected candidate: "/Applications/Developer/PyCharm CE.app/PyCharm CE"
% launch "/Applications/Developer/PyCharm CE.app"
# Found "/Applications/Developer/PyCharm CE.app"

@xaoseric can you please give details?

probonopd commented 3 years ago

Well, actually:

One small bug I did find is that if we do launch PyCharm CE it says that it can't find PyCharm. We need to do launch "PyCharm CE" for it to find that .app directory.

This behavior is correct. The name of the application is PyCharm CE and you must give this string to launch as the first argument. The way to do this in shells is to enclose it in single or double quotes.