Bug 495294

Summary: Colors are treated differently in local session and in XRDP sessions
Product: [Applications] konsole Reporter: chinorui
Component: fontAssignee: Konsole Developer <konsole-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 23.08.1   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Differences between Konsole and xterm
attachment-2883388-0.html

Description chinorui 2024-10-24 11:28:28 UTC
SUMMARY
Using Konsole from the local KDE session (plasma-wayland) the colors are right. If you connect via XRDP the Konsole colors are seen differently. Red is seen as dark blue and blue is seen as orange.

STEPS TO REPRODUCE
1. Create this script on the user's home named testcolors.sh and give it x permission:
#!/bin/bash
echo -e "\033[31mThis is red text\033[0m" # Should be red
echo -e "\033[34mThis is blue text\033[0m" # Should be blue

2. From local session execute testcolors.sh. Logout the session.

3. From XRDP session execute the same script.

OBSERVED RESULT
In step 2 (local session) the colors are seen as expected.
In step 3 (xrdp session) the red is presented as dark blue and the blue is presented as orange.
The clients used to connect through XRDP were:
- mstsc.exe (windows10)
- rdesktop (ubuntu 24)

EXPECTED RESULT
From both sessions the colors should be seen equal.

SOFTWARE/OS VERSIONS
Windows: Windows 10 v22H2
macOS: N.A.
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux: 6.10.11-amd64 
KDE Plasma Version: plasmashell 5.27.11
KDE Frameworks: 5.115.0
kf5-config: 1.0
Qt Version: 5.15.13

ADDITIONAL INFORMATION
Comment 1 chinorui 2024-10-24 11:38:08 UTC
Created attachment 175180 [details]
Differences between Konsole and xterm

From a Konsole terminal, we open xterm (version 394) and execute the same testcolors.sh script. In both cases XRDP is carrying the color information through the network, but xterm shows the colors as expected.
Comment 2 tcanabrava 2024-10-24 11:42:04 UTC
Created attachment 175182 [details]
attachment-2883388-0.html

are the konsole profiles the same on local and xrdp?
konsole has a feature that allows you to change profile when you start a
new session.


On Thu, 24 Oct 2024 at 13:38 <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=495294
>
> --- Comment #1 from chinorui@hotmail.com ---
> Created attachment 175180 [details]
>   --> https://bugs.kde.org/attachment.cgi?id=175180&action=edit
> Differences between Konsole and xterm
>
> From a Konsole terminal, we open xterm (version 394) and execute the same
> testcolors.sh script. In both cases XRDP is carrying the color information
> through the network, but xterm shows the colors as expected.
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 3 chinorui 2024-10-24 12:34:10 UTC
(In reply to tcanabrava from comment #2)
> Created attachment 175182 [details]
> attachment-2883388-0.html
> 
> are the konsole profiles the same on local and xrdp?
> konsole has a feature that allows you to change profile when you start a
> new session.
> 
> 
> On Thu, 24 Oct 2024 at 13:38 <bugzilla_noreply@kde.org> wrote:
> 
> > https://bugs.kde.org/show_bug.cgi?id=495294
> >
> > --- Comment #1 from chinorui@hotmail.com ---
> > Created attachment 175180 [details]
> >   --> https://bugs.kde.org/attachment.cgi?id=175180&action=edit
> > Differences between Konsole and xterm
> >
> > From a Konsole terminal, we open xterm (version 394) and execute the same
> > testcolors.sh script. In both cases XRDP is carrying the color information
> > through the network, but xterm shows the colors as expected.
> >
> > --
> > You are receiving this mail because:
> > You are the assignee for the bug.

YES. Is the same profile.