diff --git a/lib/menubar/utils.lua b/lib/menubar/utils.lua index d0b9e5e04..a89b176a4 100644 --- a/lib/menubar/utils.lua +++ b/lib/menubar/utils.lua @@ -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