lxqt-config-session after saving autostart element, add new backslashes before quotes even if there is exist backslashe before quotes.
Expected Behavior
lxqt-config-session before saving autostart element has to check for existing backslashe before quotes and for this case do not add a new backslashe.
Current Behavior
lxqt-config-session after saving autostart element, add new backslashes before quotes even if there is exist backslashe before quotes.
Possible Solution
Steps to Reproduce (for bugs)
- Launch lxqt-config-session
- Create test autostart element with command sh -c "sleep 12 && _some_cmd"
- Save it
- Try to edit this autostart element: the command became sh -c "sleep 12 && _some_cmd"
- Save it. After each saving, there is more and more backslashes before quotes: sh -c \"sleep 12 && _some_cmd\"
Context
System Information
- Distribution & Version: Debian buster
- Kernel: 4.19
- Qt Version: 0.14.1
- liblxqt Version:0.14.1-1
- lxqt-build-tools Version: 0.6.0-2
- Package version: lxqt-session (0.14.1-2)