Skip to content

Missing newline character of customized dotfiles #4046

@jopemachine

Description

@jopemachine

Summary  

  • KRunner dotfiles typically include a newline at the end by default.
    However, when customizing dotfiles and saving them to the database, a newline is not automatically appended.
    Let's make sure to append a newline before writing the dotfiles data retrieved from the database into the session.

Steps to Reproduce  

  1. In the WebUI, update the .bashrc user environment script to the following:
    abc
    
  2. In the WebUI, update the user environment bootstrap script to the following:
    #!/bin/bash
    echo "def" >> /home/work/.bashrc
    

Expected Behavior  

abc
def

Actual Behavior  

  • The .bashrc content of the newly created session is as follows:
abcdef

Logs/Errors  

  • None

JIRA Issue: BA-1041

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions