change also init.lua, remove spaces from field
This commit is contained in:
parent
525c7808d4
commit
b814c1e620
|
@ -386,8 +386,8 @@ local function prompt_keypressed_callback(mod, key, comm)
|
||||||
current_item = #shownitems
|
current_item = #shownitems
|
||||||
if mod.Mod1 then
|
if mod.Mod1 then
|
||||||
-- add a terminal to the cmdline
|
-- add a terminal to the cmdline
|
||||||
shownitems[current_item].cmdline = menubar.utils.terminal
|
shownitems[current_item].cmdline = menubar.utils.terminal .. ' ' ..
|
||||||
.. " -e " .. shownitems[current_item].cmdline
|
menubar.utils.terminal_execute_option .. ' ' .. shownitems[current_item].cmdline
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return perform_action(shownitems[current_item])
|
return perform_action(shownitems[current_item])
|
||||||
|
|
|
@ -35,9 +35,9 @@ local utils = {}
|
||||||
utils.terminal = 'xterm'
|
utils.terminal = 'xterm'
|
||||||
|
|
||||||
--- Terminal argument which indicates the execution of command
|
--- Terminal argument which indicates the execution of command
|
||||||
-- Usually something like ' -e ', ' -x ', ' -- '
|
-- Usually something like '-e', '-x', '--'
|
||||||
-- @tfield string menubar.utils.terminal_execute_option
|
-- @tfield string menubar.utils.terminal_execute_option
|
||||||
utils.terminal_execute_option = ' -e '
|
utils.terminal_execute_option = '-e'
|
||||||
|
|
||||||
--- The default icon for applications that don't provide any icon in
|
--- The default icon for applications that don't provide any icon in
|
||||||
-- their .desktop files.
|
-- their .desktop files.
|
||||||
|
@ -404,7 +404,7 @@ function utils.parse_desktop_file(file)
|
||||||
cmdline = cmdline:gsub('%%i', '')
|
cmdline = cmdline:gsub('%%i', '')
|
||||||
end
|
end
|
||||||
if program.Terminal == true then
|
if program.Terminal == true then
|
||||||
cmdline = utils.terminal .. utils.terminal_execute_option .. cmdline
|
cmdline = utils.terminal .. ' ' .. utils.terminal_execute_option .. ' ' .. cmdline
|
||||||
end
|
end
|
||||||
program.cmdline = cmdline
|
program.cmdline = cmdline
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue