From 4ce181df0aa77179dac42c8484f26461be996e89 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 16 Aug 2012 21:06:08 +0200 Subject: [PATCH] start: start and define the "default" browser To setup the default browser, the appropriate commands are: xdg-mime default conkeror.desktop x-scheme-handler/http xdg-mime default conkeror.desktop x-scheme-handler/https See: http://blog.radevic.com/2012/02/how-to-set-default-apps-aka-how-to-use.html --- rc/start.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rc/start.lua b/rc/start.lua index 4deb7ca..afb2df9 100644 --- a/rc/start.lua +++ b/rc/start.lua @@ -1,4 +1,5 @@ -- Startup +local browser = "conkeror" -- Setup display local xrandr = { @@ -21,6 +22,9 @@ local execute = { "numlockx on", -- Read resources "xrdb -merge " .. awful.util.getdir("config") .. "/Xresources", + -- Default browser + "xdg-mime default " .. browser .. ".desktop x-scheme-handler/http", + "xdg-mime default " .. browser .. ".desktop x-scheme-handler/https" } -- Keyboard/Mouse configuration @@ -63,15 +67,12 @@ xrun("Bluetooth Applet", "bluetooth-applet") xrun("pidgin", "pidgin -n") xrun("emacs") +xrun(browser) if config.hostname == "neo" then xrun("keepassx", "keepassx -min -lock") xrun("transmission", "transmission-gtk -m") - xrun("conkeror") elseif config.hostname == "guybrush" then xrun("keepassx", "keepassx -min -lock") xrun("NetworkManager Applet", "nm-applet") - xrun("conkeror") -elseif config.hostname == "naruto" then - xrun("conkeror") end