Open quantenzitrone opened 5 days ago
I have successfully parsed this Exec
field with
let exec: &str = <the exec arg from that file>;
let exec = exec
.replace("\\\"", "\"")
.replace("\\`", "`")
.replace("\\$", "$")
.replace("\\\\", "\\")
.replace("%%", "%");
shlex::split(&exec).unwrap().iter().map(|s| s.replace("\\n", "\n")).collect()
not sure if this will cover all cases
Try this abomination desktop entry:
from Vladimir-csp/xdg-terminal-exec
parse_exec()
parses this to:which should be parsed to:
(if i unescaped and re-rust-escaped this manually correctly)
so basically what the spec says about the
Exec
attribute