Opening a piece of software from anywhere [duplicate]

Solution 1:

Create a script (as root) called /usr/local/bin/app_name and put this inside it:

#!/bin/bash

/path/to/file/app_name $@

Then make the script executable:

sudo chmod +x /usr/local/bin/app_name