Bug 364660 - coloured ls command doesn't have different colours for directories and files in "Solarized Dark" theme
Summary: coloured ls command doesn't have different colours for directories and files ...
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 15.12.3
Platform: Kubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-23 08:29 UTC by rschirone
Modified: 2020-12-16 19:18 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rschirone 2016-06-23 08:29:04 UTC
If you select the "Solarized Dark" theme or the "Solarized Light" one, when you do `ls --color` all files are displayed pretty much with the same color, even if they are directories or normal files. Other commands like `grep --color PATTERN files` seem to work and they are correctly coloured.

I tried this on OpenSUSE Leap, OpenSUSE Tumbleweed and KUbuntu 16.04 (and with the PPA to have an updated KDE version), all with the same result. The only distro where the Solarized them works well is Fedora 23 KDE.

Looking at their package, there is this patch http://pkgs.fedoraproject.org/cgit/rpms/konsole5.git/tree/konsole-15.12.3-xterm-256color.patch but even setting that variable didn't solve the issue. I believe Fedora is working well because they applied also some patches to the coreutils package (for example http://pkgs.fedoraproject.org/cgit/rpms/coreutils.git/tree/coreutils-8.25-DIR_COLORS.patch, http://pkgs.fedoraproject.org/cgit/rpms/coreutils.git/tree/coreutils-8.5-dircolors.patch, http://pkgs.fedoraproject.org/cgit/rpms/coreutils.git/tree/coreutils-colorls.sh).

I think it would be nice having the right colours for `ls --color` even without changing the colors of ls.

Reproducible: Always

Steps to Reproduce:
1. Goto Settings > Edit Current Profile > Appearance
2. Select Solarized Dark theme > Apply > Ok
3. Execute `ls --color /etc`

Actual Results:  
Directories and normal files in /etc are all displayed with the same color and regular style

Expected Results:  
Directories should have a different colour, to make it easier distinguish dirs and files.
Comment 1 cat.hook31894 2017-12-08 10:49:52 UTC
Also reference to this bug: https://bugs.kde.org/show_bug.cgi?id=387709
Comment 2 Patrick Silva 2018-04-23 02:18:11 UTC
Both solarized and solarized light color schemes use the same color to list files and folders on Arch Linux, konsole 18.04.
Comment 3 soredake 2020-06-10 07:26:41 UTC
It still happening https://invent.kde.org/utilities/konsole/-/issues/7
Comment 4 Justin Zobel 2020-10-23 00:18:49 UTC
Can confirm still an issue on 20.08.1

If anyone has time to tinker with the color schemes they are in:

https://invent.kde.org/utilities/konsole/-/blob/master/data/color-schemes/SolarizedLight.colorscheme
https://invent.kde.org/utilities/konsole/-/blob/master/data/color-schemes/Solarized.colorscheme
Comment 5 aapje112513 2020-12-16 19:18:37 UTC
So this appears to be 'fixed' in 4:20.12.0-0xneon+20.04+focal+build10. My fresh install of KDE Neon now shows full coloring. Upon reverting Konsole and Konsole-kpart to 4:20.08.3-0xneon+20.04+focal+build9 the old coloring is back.

However, I liked it the color-less way, and I would like to keep it.

Looking at the changes, I don't see what caused it to get 'fixed': https://invent.kde.org/utilities/konsole/-/compare/release%2F20.12...release%2F20.08

What would be the way to keep the old gray solarized-dark theming? Could anyone point at the commit that fixed this?