Files
i3/testcases/t
Michael Stapelberg decc37eba1 Fix i3-dmenu-desktop quoting (#5162)
Commit 70f23caa9a introduced new issues.

Instead of distinguishing " and \, as that commit attempted,
let’s instead keep the level of escaping by escaping each backslash,
just like each double quote.

I tested this with:

    # recommended way to quote $ and " in quoted arguments, not ambiguous
    Exec=/tmp/logargs "hello \\$PWD \\"and\\" more"

    # permitted way to quote $ and " in quoted arguments, but ambiguous
    Exec=/tmp/logargs "hello \$PWD \"and\" more"

    # permitted way to quote arguments, slightly unusual to quote first arg
    Exec="/tmp/logargs" hey

    # a complicated shell expression, not ambiguous
    Exec=sh -c "if [ -n \\"\\$*\\" ]; then exec /tmp/logargs --alternate-editor= --display=\\"\\$DISPLAY\\" \\"\\$@\\"; else exec /tmp/logargs --alternate-editor= --create-frame; fi" placeholder %F

related to https://github.com/i3/i3/issues/4697 (electrum, original)
related to https://github.com/i3/i3/issues/5152 (phpstorm, breakage)
related to https://github.com/i3/i3/issues/5156 (emacsclient, breakage)
2022-10-24 21:12:27 +02:00
..
2019-10-14 03:31:24 +03:00
2018-03-15 19:57:30 +02:00
2017-09-30 11:41:57 +02:00
2022-06-01 09:49:05 +02:00
2018-11-12 18:45:00 +02:00
2022-06-01 09:49:05 +02:00
2017-09-30 11:41:57 +02:00
2021-11-05 15:19:18 +01:00
2017-09-30 11:41:57 +02:00
2022-06-01 09:49:05 +02:00
2022-06-01 09:49:05 +02:00
2017-09-30 11:41:57 +02:00
2019-07-19 21:10:40 +02:00
2022-06-01 09:49:05 +02:00
2022-06-01 09:49:05 +02:00
2018-12-12 13:09:15 +02:00
2022-06-01 09:49:05 +02:00
2022-06-01 09:49:05 +02:00