dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

[BUG] SCP from remote computer's doesn't work due to terminal outputting default 'Start Hyprland with command Hyprland'

Open ajsuper opened this issue 9 months ago • 1 comments

Describe the bug

Whenever I run ssh user@host echo, it outputs 'Start Hyprland with command Hyprland'. This prevents file transfer tools such as SCP from working. I have edited 30-autostart for both bashrc and zhsrc to print something other than that but the changes were not reflected in the echo command.

Steps to reproduce

  1. Open a second computer terminal.
  2. enter ssh user@host echo
  3. Observe the output

Expected behavior

It would be expected that it does not produce an output that way it is compatible with tools such as SCP.

Screenshots

No response

Distribution

Other (please specify below)

If Other, specify

Fedora Linux

Additional context

I've found that adding a check in the ~/.bashrc file to see if it's an interactive terminal fixes it.

if [[ $- == *i* ]]; then
    for f in ~/.config/bashrc/*; do 
        if [ ! -d $f ]; then
            c=`echo $f | sed -e "s=.config/bashrc=.config/bashrc/custom="`
            [[ -f $c ]] && source $c || source $f
        fi
    done

    if [ -f ~/.bashrc_custom ]; then
        source ~/.bashrc_custom
    fi
fi

To me this indicates one of the config files is missing the guard.

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

ajsuper avatar Jun 17 '25 19:06 ajsuper

I will remove this output. It’s not needed anymore.

mylinuxforwork avatar Jun 21 '25 11:06 mylinuxforwork