awesomerc: fix editor when nil
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
bc3c4d03ec
commit
598a50249e
|
@ -11,7 +11,8 @@ theme_path = "@AWESOME_THEMES_PATH@/default"
|
|||
|
||||
-- This is used later as the default terminal and editor to run.
|
||||
terminal = "xterm"
|
||||
editor = terminal .. " -e " .. os.getenv("EDITOR") or terminal .. " -e " .. "nano"
|
||||
editor = os.getenv("EDITOR") or "nano"
|
||||
editor_cmd = terminal .. " -e " .. editor
|
||||
|
||||
-- Default modkey.
|
||||
-- Usually, Mod4 is the key with a logo between Control and Alt.
|
||||
|
@ -102,7 +103,7 @@ mytextbox.text = "<b><small> " .. AWESOME_RELEASE .. " </small></b>"
|
|||
-- Create a laucher widget and a main menu
|
||||
myawesomemenu = {
|
||||
{"manual", terminal .. " -e man awesome" },
|
||||
{"edit config", editor .. " " .. awful.util.getdir("config") .. "/rc.lua" },
|
||||
{"edit config", editor_cmd .. " " .. awful.util.getdir("config") .. "/rc.lua" },
|
||||
{"restart", awesome.restart },
|
||||
{"quit", awesome.quit }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue