https://bugs.kde.org/show_bug.cgi?id=279614

kagen...@pm.me changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kagen...@pm.me

--- Comment #50 from kagen...@pm.me ---
(In reply to Luigi Keith from comment #43)
> You can fix this without making changes to souce code by simply making your
> .bashrc file as follows:
> 
> trap : SIGINT
> ## YOUR BASHRC CONTENT ##
> trap - SIGINT
> 
> This redirects any interrup signals to null- command during the sourcing
> phase and clears after sourcing has been done.
> 
> Why:
> - Dolphin opens with the tabs opened in the last session.
> - Dolphin parses all the paths of the tabs and starts calling directory
> changes to the terminal.
> - Dolphin has a failsafe feature when calling directory changes*[1]. It
> sends SIGINT to terminal process before changing directory.
> - This results in terminal (bash) interrupting .bashrc / .bash_profile
> parsing.
> 
> [1] panels/terminal/terminalpanel.cpp: TerminalPanel::sendCdToTerminal
>         // The TerminalV2 interface does not provide a way to delete the
>         // current line before sending a new input. This is mandatory,
>         // otherwise sending a 'cd x' to a existing 'rm -rf *' might
>         // result in data loss. As workaround SIGINT is sent.
>         const int processId = m_terminal->terminalProcessId();
>         if (processId > 0) {
>             kill(processId, SIGINT);
>         }

I had this issue emerge on my system with a fresh install of Arch Linux, and
using zsh+oh-my-zsh. This workaround fixes the issue for me. Info about my
system:

Operating System: Arch Linux
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7
Kernel Version: 6.0.8-arch1-1 (64-bit)
zsh version:  5.9-1
dolphin version: 22.08.3-1

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to