aboutsummaryrefslogtreecommitdiff
path: root/include/er_xdg_pipe_menu.hrl
diff options
context:
space:
mode:
authorChristopher R. Nelson <christopher.nelson@languidnights.com>2026-07-20 22:48:29 -0400
committerChristopher R. Nelson <christopher.nelson@languidnights.com>2026-07-20 22:48:29 -0400
commit13491ac0c68e24e6aeb5d47e8b89777979ad6320 (patch)
treedb06703461321b95c08a2979c26a564cec6700cd /include/er_xdg_pipe_menu.hrl
parent810cb6fdd86452b75e520fc17daec40ba36eba13 (diff)
Add .desktop file parser
Parses the [Desktop Entry] group of a .desktop file into a #desktop_entry{} record with name, exec, icon, and a derived hidden flag (set by NoDisplay, Hidden, or a non-Application Type). Exec field codes (%f, %u, etc.) are stripped since a pipemenu has no file/URI context to expand them with. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Diffstat (limited to 'include/er_xdg_pipe_menu.hrl')
-rw-r--r--include/er_xdg_pipe_menu.hrl6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/er_xdg_pipe_menu.hrl b/include/er_xdg_pipe_menu.hrl
new file mode 100644
index 0000000..2cee607
--- /dev/null
+++ b/include/er_xdg_pipe_menu.hrl
@@ -0,0 +1,6 @@
+-record(desktop_entry, {
+ name :: binary(),
+ exec :: binary(),
+ icon :: binary() | undefined,
+ hidden :: boolean()
+}).