befree/doc/set_luakit_default.org

1.8 KiB

Setting luakit as default browser

Check default browser used by the system

  xdg-settings get default-web-browser

Create a desktop entry for luakit and save on /greenleaves/befree/src/branch/main/doc/~./local/share/applications Call it something like "luakit.desktop"

  echo "[Desktop Entry]
  Encoding=UTF-8
  Version=1.0
  Name=Luakit Web Browser
#  Comment=Browse the World Wide Web
#  GenericName=Web Browser
#  Keywords=Internet;WWW;Browser;Web;Explorer
  Exec=luakit %u
#  Terminal=false
#  X-MultipleArgs=false
  Type=Application
#  Icon=luakit
#  Categories=GNOME;GTK;Network;WebBrowser;
#  MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
#  StartupNotify=true
  Actions=NewWindow;" > ~/.local/share/applications/luakit.desktop

Set luakit as default browser:

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

References

Use tor in luakit

  systemctl start tor

Torify the application using torsocks

  torsocks luakit --nounique

Verifiy if your browser is using tor:

Visit the following url from luakit:

Or use curl to check the ip:

  curl -x socks5h://localhost:9050 -s https://check.torproject.org/api/ip