Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with Icons in Konsole #118

Closed
kaefert opened this issue Feb 7, 2019 · 33 comments
Closed

Problem with Icons in Konsole #118

kaefert opened this issue Feb 7, 2019 · 33 comments
Labels
kind/bug Something isn't working

Comments

@kaefert
Copy link

kaefert commented Feb 7, 2019

Expected behavior

The icons should show out of the box on installation and completely. Or the font packages should at least be marked as optional dependency.

Actual behavior

I've installed lsd on my Manjaro KDE laptop. At first I only got empty boxes instead of icons. After reading a bit I found I could get some icons by installing ttf-font-awesome and all of them by installing ttf-nerd-fonts-symbols.

Though those icons look cropped in Konsole, and don't show at all in tty (which shows variously sized filled boxes instead).

screenshot_20190207_152955

I've also talked about this issue in the manjaro forum:
https://forum.manjaro.org/t/replacement-for-ls-lsd-ls-deluxe-icons-problems/74887

And I've aso reported the issue with Konsole here:
https://bugs.kde.org/show_bug.cgi?id=404128

@kaefert kaefert added the kind/bug Something isn't working label Feb 7, 2019
@Peltoche
Copy link
Collaborator

Peltoche commented Feb 8, 2019

Hi @kaefert ,

Thanks for the report. The way your icons are splitted is weird indeed. Which terminal do you use? Can you try on an other one in order to check if it's an issue with your terminal?

@kaefert
Copy link
Author

kaefert commented Feb 9, 2019

Hello @Peltoche !
Yes, it seems to be an issue only in "Konsole" (using version 18.12.1 = default KDE terminal).
I tried "Terminator" (version 1.91.6) which doesn't have this problem.

In either of those two terminals when I select the icons with the text selection tool I see there are two spaces between the icons and the following file name. The first of those two is "covered" by the second part of the icon in "Terminator" but is completely blank in "Konsole".

If I copy some terminal output of either of those containing icons into "Kate" (default KDE text editor) the Icon's will "break" the monospace layout and make lines with icons have a longer visual length then lines with the same number of characters without icons.

If I copy into "gedit" I see not spaces but special character boxes "00 20" after the icons (and there also they break the monospace grid)

In the tty (non graphical environment) I have another issue with icons:
img_20190209_071703 jpg_mod

@Peltoche
Copy link
Collaborator

Peltoche commented Feb 9, 2019

Thanks for all the feedbacks!

For the issue with Konsole I don't know if we can do anything. It seems to be a bug in Konsole. For the tty I guess the issue is related to the font used by default. Some configuration with the setfont command should do the trick.

It would be a good idea to document these bugs, I make an issue.

@kaefert
Copy link
Author

kaefert commented Feb 9, 2019

thank you for the friendly support!
Could you be a bit more specific about how to employ the setfont command? I have no experience with that stuff..

@Peltoche
Copy link
Collaborator

Peltoche commented Feb 9, 2019

Sorry but I don't have any experience at all in font configuration... I tried some stuff but I didn't succeed.

I just found some useful links:

I will probably try later but for now I don't have the time for it, sorry. I you found any solution please keep us informed.

@xircon
Copy link

xircon commented Feb 12, 2019

This is a bug in konsole - it also applies to oh-my-zsh/powerlevel9k

Powerlevel9k/powerlevel9k#971

@ghost
Copy link

ghost commented Mar 4, 2019

Same Problem in URxvt-unicode. This are my fonts:
URxvt.font:xft:TerminessTTFNerdFONTMono:size=12

@emorevival
Copy link

I've got the same problem in st as well. Running on Archlabs i3, came out of the box like this

pic-window-190304-2239-48

I'm using the mono font

@Peltoche Peltoche changed the title Problem with Icons in Manjaro KDE (Konsole) Problem with Icons in Konsole Mar 5, 2019
@finex
Copy link

finex commented Mar 9, 2019

Hi, I've found this, I don't know if it is useful: https://bugs.kde.org/show_bug.cgi?id=390650

Edit: some other are reporting this problem: Powerlevel9k/powerlevel9k#727 (with links to more bug report)

@matthiasbeyer
Copy link
Contributor

I also have problems in xterm:

2019-03-11-212300_153x47_scrot

Not sure whether this is the same bug or something else.

@emorevival
Copy link

my problem was fixed after cloning the nerd-fonts repo and running install.sh. It's huge, it takes ages, but it solved the problem. May be solvable by patching whatever font lsd uses for its icons but I needed the entire thing for something else anyway.

pic-window-190311-2129-49

@eikeschott
Copy link

Have the same issues on Linux Mint 19.1 Cinnamon using Terminator.
lsd
lsd

lsd -la
lsd_la

@DCdeBrabander
Copy link

Got same icon issue as @eikeschott (and @matthiasbeyer ?)
image

I installed the .deb (running Pop OS! which runs Ubuntu 18.10 underneath)
and I use lsd like this:
image

Open for suggestions :-)

@dummefil
Copy link

dummefil commented Mar 21, 2019

@DCdeBrabander, @eikeschott please read Prerequisites and don't make unrelative to issue posts. Thanks.

@Cory-Watson
Copy link

Cory-Watson commented Mar 23, 2019

Yakuake also seems to be truncating the lsd icons like Konsole does...

yakuake_lsd_icon_error

@BobbyBabes
Copy link

BobbyBabes commented Apr 16, 2019

I just installed from the Arch Community repo, and the icons show up as boxes. This is in Yakuake, which is based on KDE Konsole.

lsd-not-displaying-icons_20190416_135446

In Konsole, clipped icons are displayed like with the others :

lsd-displaying-clipped-icons_20190416_140020

@Cory-Watson
Copy link

@BobbyBabes do you have any of the Awesome fonts installed? I've had better luck with otf-font-awesome (ttf-font-awesome had trouble with whitespace aka %0020, mainly in i3)

@BobbyBabes
Copy link

BobbyBabes commented Apr 16, 2019

@BobbyBabes
Copy link

A little improvement. Yakuake now also displays clipped icons. Also, tried with 2 other Awesome fonts installed from the Arch repo. But exactly the same results, Yakuake and Konsole both display clipped fonts. Thanks for trying to help out.

Now in Yakuake :

lsd-displaying-clipped-icons-in-yakuake_20190416_190229

@Cory-Watson
Copy link

@BobbyBabes, turns out I had aur/awesome-terminal-fonts 1.1.0-2 installed as well.
Konsole and Yakuake both seem to clip off the ends of the lsd icons.

I'm a big KDE fan, but as for terminals I use terminator more than anything else. It seems to handle the lsd icons fairly well...
lsd_testing

@BobbyBabes
Copy link

BobbyBabes commented Apr 16, 2019

You're right that's a great file manager, and so was Thunar. I remember those from when I was a CrunchBang and ArchBang user.
I'm going to uninstall the Awesome fonts. Tell you why. Compare the first 2 screenshots that I posted, to the third one. Notice the slightly off triangles at the end of each folder name in the third one ? I have a hunch that that somehow happened because of the Awesome fonts installation (one of the three that I have installed). After that, I'm also uninstalling lsd because I just found out that it doesn't support the --time-style= option of ls. I usually specify long-iso or even full-iso because I need a year in the date.

EDIT:
The problem with the slightly off triangles is indeed caused by installing Awesome Terminal Fonts. It has not caused by lsd.

The problem is that the ttf-hack, awesome-terminal-fonts, and powerline-fonts (the triangles) are displayed as italic, after installing the Awesome Terminal Fonts. After uninstalling the Awesome Terminal Fonts, the font would still display as italic in Konsole and Yakuake. The weird thing is that in Konsole and Yakuake the Hack font is still configured as regular, although it displays as italic. A change from regular to bold, and back to regular fixed this. I could reproduce all this 3 times in a row.

@matthiasbeyer Show the world that you are from the Dark Ages with your thumb down.

@dumbPy
Copy link

dumbPy commented Apr 24, 2019

Screenshot from 2019-04-24 16-02-41
This is what it looks on my machine. upper one is suckless-terminal and lower is gnome-terminal
Can't figure out how to fix it. I patched UbuntuMono (after cloning nerd-fonts and using it's install.sh script). That basically messed up my other fonts but the icons are still cropped. Also tried installing awesome-terminal-fonts , didn't help.

font-awesome and powerline nerd-font are not in options in the nerd fonts install script. 😞

@eclipseo
Copy link
Contributor

It's fixed in Konsole v19.03.80: https://phabricator.kde.org/R319:ed6d8b702fd590d83d3b1db25bf2d1245b1cae33

You can backport this patch if you want https://phabricator.kde.org/file/data/3tu5ac4qtnfxofcrbbmr/PHID-FILE-ut2qllmgagq25jvwdmgn/D18784.diff

@Zardoz89
Copy link

Strange... LSD works out of the box on Kubuntu 18.10 with Firacode font
imagen

I use by default unicode icons as Firacode lacks of some icons that lsd uses, but for me it's ok.

@Cory-Watson
Copy link

@Zardoz89 which terminal are you using?

@Zardoz89
Copy link

Konsole and Yakuake. The capture is Konsole that comes with Kubuntu 18.10

@romunov
Copy link

romunov commented Jun 24, 2019

Fixed after updating Konsole to 19.04.2 (see here).

@Cory-Watson
Copy link

Can confirm fixed with Konsole 19.04.2

@416207298
Copy link

lsd图标问题
My icon has show this way, how to fix it?

@Peltoche Peltoche closed this as completed Apr 9, 2020
@NamHyeongKeol
Copy link

image

My icon has show this way, how to fix it?

@KvizadSaderah
Copy link

KvizadSaderah commented Jul 10, 2021

Screenshot 2021-07-10 at 12 44 21

same, if I get it right, it's a font issue? i've got same on debian/ubuntu/mac ¯\_(ツ)_/¯

@s3rgeym
Copy link

s3rgeym commented Aug 17, 2021

I have same shit after i install kde then delete gnome.

Screenshot_20210817_031639

@zwpaper
Copy link
Member

zwpaper commented Aug 17, 2021

Hi @tz4678 , I can't see your problem with your picture posted. this issue is related to a konsole bug #118 (comment) which is fixed #118 (comment), and a font issue #118 (comment), both of them are fixed, I am locking this issue, open a new one and describe your problem if you still have problem with lsd

@lsd-rs lsd-rs locked as resolved and limited conversation to collaborators Aug 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests