5

I'm on Linux Mint Olivia. I just installed Lynx.

How do I set Lynx as my browser, so when I open links from the terminal, they open in that terminal with Lynx?

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
user193661
  • 153
  • 1
  • 8

2 Answers2

4

First make .desktop application for lynx:

[Desktop Entry]
Type=Application
Name=Lynx
Exec=gnome-terminal -e 'lynx %u'

And save it to application directory e.g /usr/share/applications/ naming like lynx.desktop and give it execution permission (chmod +x /usr/share/applications/lynx.desktop).

Then set it as default web browser by using:

xdg-settings set default-web-browser lynx.desktop

Now try to Open link and it will be open with lynx in the terminal.

Note: lynx is command-line web-browser and hence it needs terminal so-that I've used gnome-terminal in my example Exec command. Your terminal application may be different. This works for me with my current system.

Pandya
  • 23,898
  • 29
  • 92
  • 144
0

Since I'm not using GNOME, I used the following for the .desktop file:

[Desktop Entry]
Type=Application
Name=Lynx
Exec=lynx %u
Terminal=true
Categories=Network;
Icon=/usr/share/applications/lynx.jpg

Changes include:

  • Use the default terminal
  • Added to category (try looking under "Internet")
  • Added icon (included here)lynx icon
Archemar
  • 31,183
  • 18
  • 69
  • 104
jcarroll
  • 1
  • 1