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?

5
  • 2
    not sure what you mean 'when I open links from the terminal'? In a terminal window you can open a webpage with lynx by typing e.g. lynx http://www.mypage.com. Commented Jan 23, 2016 at 8:50
  • 1
    xdg-settings set default-web-browser lynx Commented Jan 23, 2016 at 9:16
  • sudo update-alternatives --set x-www-browser "$(which linx)" Commented Jan 23, 2016 at 9:30
  • @Costas you've to provide .desktop application to xdg-settings Commented Jan 23, 2016 at 9:43
  • 1
    @gogoud It might be something like this Commented Jan 23, 2016 at 11:53

2 Answers 2

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.

2
  • 1
    Linux Mint Olivia is derived from Debian; using x-terminal-emulator is the way to go, rather than hard-code specific terminal names. Commented Jan 23, 2016 at 13:34
  • if you add --tab after gnome-terminal it gets added to existing terminal windows Commented Aug 23, 2022 at 13:54
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

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.