Sfoglia il codice sorgente

Fix empty names 'Name=' in *.desktop files.

For undefined reason
~/.local/share/applications/userapp-avidemux_qt4-GR53LX.desktop
was created with 'Name='. This commit should resolve the problem.
awesome-3.5
Kolan Sh 5 anni fa
parent
commit
22477f02fd
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. +3
    -0
      freedesktop/utils.lua

+ 3
- 0
freedesktop/utils.lua Vedi File

@@ -191,6 +191,9 @@ function parse_desktop_file(arg)
end

if program.Exec then
if program.Name == nil then
program.Name = ""
end
local cmdline = program.Exec:gsub('%%c', program.Name)
cmdline = cmdline:gsub('%%[fmuFMU]', '')
cmdline = cmdline:gsub('%%k', program.file)


Loading…
Annulla
Salva