Skip to main content

desktop_string_escape

Function desktop_string_escape 

Source
fn desktop_string_escape(s: &str) -> String
Expand description

Escape a plain desktop-entry string value (TryExec, vendor keys), per the Desktop Entry spec’s \\, \n, \t, \r escapes. A raw newline would end the line and let a path inject keys, as desktop_exec_escape explains.