Merge branch 'pr=desktop-name' of git://github.com/roysc/awesome
This commit is contained in:
commit
0469cb4481
|
@ -177,6 +177,9 @@ function utils.parse(file)
|
|||
if program.Exec then
|
||||
-- Substitute Exec special codes as specified in
|
||||
-- http://standards.freedesktop.org/desktop-entry-spec/1.1/ar01s06.html
|
||||
if program.Name == nil then
|
||||
program.Name = '['.. file:match("([^/]+)%.desktop$") ..']'
|
||||
end
|
||||
local cmdline = program.Exec:gsub('%%c', program.Name)
|
||||
cmdline = cmdline:gsub('%%[fuFU]', '')
|
||||
cmdline = cmdline:gsub('%%k', program.file)
|
||||
|
|
Loading…
Reference in New Issue