awesome/lib/menubar
Uli Schlachter a37f12c0a1 menubar.utils.parse_dir: Ask Gio for file type
When not including standard::type in the query for children of a file then Gio
may not look up this information. This might work on some file systems (e.g.
ext4), but other (apparently XFS) do not provide the needed file type
information (see man readdir on the d_type field). The result was that the
menubar contained no entries because no .desktop files were identified as
regular files and thus read.

Fix this by including standard::type in the queries.

Also, this commit makes the code use some pre-defined string constants from Gio
to make "double sure" that typos are caught.

Thanks to @Jajauma for doing the hard part on debugging this.

Fixes: https://github.com/awesomeWM/awesome/issues/863
Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-04-30 19:23:46 +02:00
..
icon_theme.lua menubar.icon_theme: Don't require("awful") 2016-02-21 16:55:06 +01:00
index_theme.lua Fix/silence various ldoc warnings in menubar 2015-11-19 22:22:23 +01:00
init.lua Merge branch 'replace-popen-to-async' of https://github.com/actionless/awesome 2016-04-30 09:11:50 +02:00
menu_gen.lua feat(lib: menubar): replace io.popen to lgi 2016-04-28 17:07:24 +02:00
utils.lua menubar.utils.parse_dir: Ask Gio for file type 2016-04-30 19:23:46 +02:00