That file is disturbing. Why does it do everything via external processes and shell commands? Stuff like calling ls -l to list files in a directory is not portable, and parsing the output of commands intended for humans and building shell commands without careful escaping is dangerous.
Nope thanks, after this “fix” for wayland support on linux i do not touch this software https://github.com/rustdesk/rustdesk/blob/1.1.9/src/platform/linux.rs#L411-L422 Basically editing the config to disable wayland without user interaction.
I had no idea! That’s mental.
That file is disturbing. Why does it do everything via external processes and shell commands? Stuff like calling
ls -l
to list files in a directory is not portable, and parsing the output of commands intended for humans and building shell commands without careful escaping is dangerous.Yeah, just prompt the user.