Ubuntu – Terminal commands to add NEW custom browser to Preferred Applications

browsercommand line

I would like to know the terminal commands to add new custom browser to Preferred Applications?

I don't mean selecting a browser using:

sudo update-alternatives –config x-www-browser

I would appreciate it if someone could help me with the following:

What are the Terminal Commands to add a NEW custom browser to Preferred Applications?

I would like links in other files to work as well, for example, when I click on a link in a .pdf, I am currently getting the following error:

Failed to execute child process "/opt/iron-linux-32/iron" (No such file or directory)

I also tried:

$ /usr/share/iron/iron
Failed to execute child process "/usr/share/iron/iron" (Permission denied)

It also failed when I elevated permission.

I have tried:

sudo gnome-default-applications-properties

Then, in the "Command" box entered:

/opt/iron-linux-32/iron %s

(with and without the %s)

I have also tried:

/usr/share/iron/iron %s

I am using Ubuntu 10.04. I want to use SRWare Iron.
Note: There might be an issue as well with privileges.

I am using this as an opportunity to learn how to use the command line, and am really stuck. Seems like it should be possible, but I might be getting stuck on syntax.

Best Answer

Answer from the original poster:

Finally got it to work using a program called "System Settings": System Settings Version 1.0 Using KDE Development Platform 4.4.5 (KDE 4.4.5) (c) 2009, Ben Cooksley

  1. First, I elevated my permissions to root (admin)
  2. Using "System Settings"
  3. General Tab
  4. Under the "Personal" Section, select "Default Applications"
  5. Go to "Web Browser," (go to 2nd selection) "In the following browser," search around and select "iron."

I could not get Xdg-open to work. Not saying that it doesn't work, just saying "I" couldn't get this to work

Related Question