Difficulty executing programs with Bash

Hi. I have a question regarding executibles in Git Bash. Why do some programs run when typing their file name while others do not? For example I am able to run Visual Studio Code by just typing ‘Code’, but when I want to launch Magic the Gathering Arena (by typing its launcher name), Bash returns with "command not found’. Any help would be appreciated!

1 Like

Is it something that can normally be executed from git bash?

You can always check the read-write-execute permissions by running ls -l.
chmod +x <filename> gives a file permission to be executable.

1 Like

I’m pretty sure VS Code automatically adds itself to your path.
If you open up your user environment variables and click on the Path variable, you will likely see something like this inside.

C:\Users\{your_user_name}\AppData\Local\Programs\Microsoft VS Code\bin

In that folder is the script that allows you to launch VS Code with just the command code.