Update clion.py
fixed clion detection on mac
Hmm strange, when I run mdfind on the command line in the Big Sur beta, I can't get it to find anything installed in /Applications, neither with the old nor the new method.
For instance, if running mdfind -name Safari.app, or mdfind kind:app Safari.app on the command line (no matter if from ~ or /) I don't get any output, even though /Applications/Safari.app exists.
Does this work for you?
PS: It's probably because I have all indexing locations for Spotlight disabled, and mdfind seems to be a frontend for Spotlight. I wonder if there's a better way to check if an application is installed on macOS.
I'm on Catalina. -name doesnt work but kind:app does. I guess you cant search for apps with -name anymore.
The CLion command line launcher doesn't have any inspection "--version" arguments. thus it always launches CLion... so that's no good. But the launcher is installed in "usr\local\bin\clion.sh"
so "mdfind -name clion.sh" works. probably just use that. It only finds the app if the command line launcher is configured but that has to be configured for fips to use it anyway.
does "mdfind -name clion.sh" work on yours.
or [ -f /usr/local/bin/clion.sh ] && echo "Found"
...should still work even if indexing is turned off.
was just stumbling over this myself, apologies for the late merge