add utils.terminal_execute_option field
This commit is contained in:
parent
68e4dd430f
commit
ef136dd8d9
|
@ -34,6 +34,10 @@ local utils = {}
|
|||
--- Terminal which applications that need terminal would open in.
|
||||
utils.terminal = 'xterm'
|
||||
|
||||
--- Terminal argument which indicates the execution of command
|
||||
-- Usually something like ' -e ', ' -x ', ' -- '
|
||||
utils.terminal_execute_option = ' -e '
|
||||
|
||||
--- The default icon for applications that don't provide any icon in
|
||||
-- their .desktop files.
|
||||
local default_icon = nil
|
||||
|
@ -399,7 +403,7 @@ function utils.parse_desktop_file(file)
|
|||
cmdline = cmdline:gsub('%%i', '')
|
||||
end
|
||||
if program.Terminal == true then
|
||||
cmdline = utils.terminal .. ' -e ' .. cmdline
|
||||
cmdline = utils.terminal .. utils.terminal_execute_option .. cmdline
|
||||
end
|
||||
program.cmdline = cmdline
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue