Post History
My goal is to create a clickable link in the terminal that opens an executable. I'm trying to do this using thefile: URI. For example, I want to open Blender whose executable is /usr/bin/blender. I...
#3: Post edited
how to create a clickable link for an executable in the terminal
- how to create a clickable link to an executable in the terminal
#2: Post edited
how to open an executable file from the terminal using the file URI
- how to create a clickable link for an executable in the terminal
#1: Initial revision
how to open an executable file from the terminal using the file URI
My goal is to create a clickable link in the terminal that opens an executable. I'm trying to do this using the`file:` URI. For example, I want to open Blender whose executable is `/usr/bin/blender`. If I enter the following in a terminal, it creates a clickable link that is recognized by the terminal. However, nothing happens when I click or Ctrl+click on it. ```sh $ echo file:///usr/bin/blender file:///usr/bin/blender ``` However, this technique does work for other file types, such as text files. For example, the following creates a clickable link to `file.txt` that opens with the default program to open txt files. ```sh $ echo file:///home/trevor/file.txt file:///home/trevor/file.txt ``` I can open `/usr/bin/blender` if I open a file browser, navigate to `/usr/bin/`, and double-click the *blender* icon. *Note:* I am using Gnome and have tried this using several terminals (kgx, gnome-terminal, konsole).