Bug 445774

Summary: Terminal panel activated when Dolphin starts does not always respect custom bash prompt
Product: [Applications] dolphin Reporter: Patrick Silva <bugseforuns>
Component: panels: terminalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bharadwaj.raju777, kfm-devel, pranav.3943
Priority: NOR    
Version: 21.11.80   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: screenshot
Video showing the problem

Description Patrick Silva 2021-11-19 20:43:45 UTC
STEPS TO REPRODUCE
1. add the following line to your ~/.bashrc file:
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
2. save ~/.bashrc file
3. open Dolphin and open its Terminal panel by pressing F4
4. open Konsole

OBSERVED RESULT
Konsole respects custom bash prompt, Terminal panel of Dolphin does not.

EXPECTED RESULT
Terminal panel of Dolphin should respect custom bash prompt.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2
Graphics Platform: Wayland
Comment 1 Patrick Silva 2021-11-19 20:50:58 UTC
Created attachment 143747 [details]
screenshot
Comment 2 Pranav Karande 2021-11-20 14:14:32 UTC
I am facing same issue but it appears to occur only if terminal panel is already enabled and then dolphin is opened i.e. when dolphin is restarted after opening the panel. If the panel is opened by pressing F4 after launching dolphin, it respects the custom prompt.
Comment 3 Pranav Karande 2021-11-20 14:21:21 UTC
Created attachment 143771 [details]
Video showing the problem
Comment 4 Patrick Silva 2021-11-20 14:48:02 UTC
You are right. On my system sometimes I need to restart Dolphin a few times with Terminal panel already enabled.

Accurate steps to reproduce:
1. add the following line to your ~/.bashrc file:
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
2. save ~/.bashrc file
3. open Dolphin and open its Terminal panel by pressing F4 (Terminal panel respects the custom bash prompt as expected)
4. restart Dolphin
5. if Terminal panel is still respecting the custom bash prompt, restart Dolphin repeatedly.
At some point the custom bash prompt will not be respected.
Comment 5 Pranav Karande 2021-11-20 17:14:35 UTC
Is this a duplicate of https://bugs.kde.org/show_bug.cgi?id=279614
Comment 6 Bharadwaj Raju 2022-02-04 06:29:39 UTC

*** This bug has been marked as a duplicate of bug 279614 ***