I'm trying to set up a keybinding for an executable which is in my home. For this, I set the command:
sh -c '\"/path/to/the/executable\" --options'
But, it does not work, and, when I'm running it in a terminal, I've got:
not found
(or no such file or directory
with bash
)
As @n. m. could be an AI says in a comment of this question
when you try to run an executable and get a "file not found" error while the file is obviously right here, it's the interpreter missing.
For the executable, the file
command gives:
script, Unicode text, UTF-8 text executable
To me, it seems to be a simple script, that sh
and bash
should be able to execute! What am I missing?
Edit, extra context as requested: this is actually part of the TOR browser, the first line of the script has:
#!/usr/bin/env ./Browser/execdesktop
And the first line of ./Browser/execdesktop
has:
#!/usr/bin/env bash
#!/usr/bin/env ./Browser/execdesktop
, and the first list of execdesktop is#!/usr/bin/env bash
^^