]> git.sur5r.net Git - i3/i3/commit
Fix i3-dmenu-desktop quoted command name 2757/head
authorSebastian Larsson <sjereq@gmail.com>
Sun, 30 Apr 2017 12:40:04 +0000 (14:40 +0200)
committerSebastian Larsson <sjereq@gmail.com>
Sun, 30 Apr 2017 12:40:04 +0000 (14:40 +0200)
commit32175b0a1f2db722a0adc149f1ddc3cbef1f9553
tree2fb331dc3e62181b472946c625f02aa69013d627
parent1d4e9f5de0281d4f152420a90edc59577e142221
Fix i3-dmenu-desktop quoted command name

According to the Desktop Entry Specification
https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html#exec-variables
the executable name or path of the executable may be quoted. This is not
properly respected when i3-dmenu-desktop extracts the command name from
the Exec entry.

Examples of values that fail and what they currently result in:

- "bar" -> "bar"
- "foo/bar" -> bar"
- "foo foobar/bar" -> "foo
- "foo\sbar" -> "foo\sbar"
- foo\sbar -> foo\sbar
- "foo\\\\bar" -> "foo\\\\bar"
i3-dmenu-desktop