Bug 445774 - Terminal panel activated when Dolphin starts does not always respect custom bash prompt
Summary: Terminal panel activated when Dolphin starts does not always respect custom b...
Status: RESOLVED DUPLICATE of bug 279614
Alias: None
Product: dolphin
Classification: Applications
Component: panels: terminal (show other bugs)
Version: 21.11.80
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-19 20:43 UTC by Patrick Silva
Modified: 2022-02-04 06:29 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
screenshot (104.80 KB, image/png)
2021-11-19 20:50 UTC, Patrick Silva
Details
Video showing the problem (1.50 MB, video/x-matroska)
2021-11-20 14:21 UTC, Pranav Karande
Details

Note You need to log in before you can comment on or make changes to this bug.
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 ***