Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

66%
+2 −0
Q&A how to create a clickable link to an executable in the terminal

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...

1 answer  ·  posted 6d ago by Trevor‭  ·  last activity 3d ago by Ordoviz‭

#3: Post edited by user avatar Trevor‭ · 2024-11-29T05:18:30Z (6 days ago)
  • 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 by user avatar Trevor‭ · 2024-11-29T05:18:17Z (6 days ago)
  • 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 by user avatar Trevor‭ · 2024-11-29T05:17:22Z (6 days ago)
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).