Skip to content

lxqt-config-session after saving autostart element, add new backslashes before quotes #301

@ghost

Description

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)
  1. Launch lxqt-config-session
  2. Create test autostart element with command sh -c "sleep 12 && _some_cmd"
  3. Save it
  4. Try to edit this autostart element: the command became sh -c "sleep 12 && _some_cmd"
  5. 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions