Add non-debian default support
This commit is contained in:
parent
948c182139
commit
f328b00d93
|
@ -19,7 +19,7 @@ local hotkeys_popup = require("awful.hotkeys_popup")
|
|||
require("awful.hotkeys_popup.keys")
|
||||
|
||||
-- Load Debian menu entries
|
||||
local debian = require("debian.menu")
|
||||
local is_deb, debian = pcall(require, "debian.menu")
|
||||
local has_fdo, freedesktop = pcall(require, "freedesktop")
|
||||
|
||||
-- awesome-wm-widgets
|
||||
|
@ -118,7 +118,7 @@ if has_fdo then
|
|||
before = { menu_awesome },
|
||||
after = { menu_terminal }
|
||||
})
|
||||
else
|
||||
elseif is_deb then
|
||||
mymainmenu = awful.menu({
|
||||
items = {
|
||||
menu_awesome,
|
||||
|
@ -126,6 +126,13 @@ else
|
|||
menu_terminal,
|
||||
}
|
||||
})
|
||||
else
|
||||
mymainmenu = awful.menu({
|
||||
items = {
|
||||
menu_awesome,
|
||||
menu_terminal,
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue