add utils.terminal_execute_option field

This commit is contained in:
ThanosApostolou 2018-09-15 18:08:51 +03:00
parent 68e4dd430f
commit ef136dd8d9
1 changed files with 5 additions and 1 deletions

View File

@ -34,6 +34,10 @@ local utils = {}
--- Terminal which applications that need terminal would open in. --- Terminal which applications that need terminal would open in.
utils.terminal = 'xterm' 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 --- The default icon for applications that don't provide any icon in
-- their .desktop files. -- their .desktop files.
local default_icon = nil local default_icon = nil
@ -399,7 +403,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 .. ' -e ' .. cmdline cmdline = utils.terminal .. utils.terminal_execute_option .. cmdline
end end
program.cmdline = cmdline program.cmdline = cmdline
end end