awesomerc: fix editor when nil

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-10-23 10:26:13 +02:00
parent bc3c4d03ec
commit 598a50249e
1 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,8 @@ theme_path = "@AWESOME_THEMES_PATH@/default"
-- This is used later as the default terminal and editor to run. -- This is used later as the default terminal and editor to run.
terminal = "xterm" 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. -- Default modkey.
-- Usually, Mod4 is the key with a logo between Control and Alt. -- 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 -- Create a laucher widget and a main menu
myawesomemenu = { myawesomemenu = {
{"manual", terminal .. " -e man awesome" }, {"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 }, {"restart", awesome.restart },
{"quit", awesome.quit } {"quit", awesome.quit }
} }