mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
Merge branch 'menubar-skip-comments-in-desktop-files' of git://github.com/blueyed/awesome
This commit is contained in:
commit
57b6433b53
1 changed files with 3 additions and 1 deletions
|
@ -129,7 +129,9 @@ function utils.parse(file)
|
||||||
-- Parse the .desktop file.
|
-- Parse the .desktop file.
|
||||||
-- We are interested in [Desktop Entry] group only.
|
-- We are interested in [Desktop Entry] group only.
|
||||||
for line in io.lines(file) do
|
for line in io.lines(file) do
|
||||||
if not desktop_entry and line == "[Desktop Entry]" then
|
if line:find("^%s*#") then
|
||||||
|
-- Skip comments.
|
||||||
|
elseif not desktop_entry and line == "[Desktop Entry]" then
|
||||||
desktop_entry = true
|
desktop_entry = true
|
||||||
else
|
else
|
||||||
if line:sub(1, 1) == "[" and line:sub(-1) == "]" then
|
if line:sub(1, 1) == "[" and line:sub(-1) == "]" then
|
||||||
|
|
Loading…
Reference in a new issue