linutil icon indicating copy to clipboard operation
linutil copied to clipboard

Missing font for folder icons in installer ui - EndeavourOS

Open onemustpersist opened this issue 1 year ago • 13 comments
trafficstars

Describe the bug

Folder icons and console icons appear as hollow boxes on run

To Reproduce

Run script in EndeavourOS

Expected behavior

Icons should appear as console icon and folders

Screenshots

missingfont-software

Additional context

Happens in current build

onemustpersist avatar Jul 28 '24 12:07 onemustpersist

Those are icons from Nerd Fonts.

https://github.com/ChrisTitusTech/linutil/blob/8e8476cda5ce2b9d1efcc2e031f19bc38132586a/src/theme.rs#L26-L27

From what I understand, linutil doesn't install nerd fonts. You can install manually: package. You should choose one (or more) font you like from the group.

adamperkowski avatar Jul 28 '24 13:07 adamperkowski

Even with all nerd-fonts installed, this is still an issue :

after-nerdfont-install

linutil should install the font if it is going to use it else the presented UI and the screenshot of the ui will differ

onemustpersist avatar Jul 28 '24 13:07 onemustpersist

You should check your terminal emulator settings for fonts. do you use tmux or anything similar?

adamperkowski avatar Jul 28 '24 13:07 adamperkowski

Required opening fresh terminal to address the issue. If that is the case, not sure how this can be address before running the script other then a prerequisite install of the fonts.

onemustpersist avatar Jul 28 '24 13:07 onemustpersist

Linutil is not causing fonts to not work somehow, but if you don't want to install the fonts, linutil has a compatibility mode with linutil --compat or linutil -c

JustLinuxUser avatar Jul 28 '24 17:07 JustLinuxUser

With the goal of this project being a tool to help people to migrate to Linux by removing a lot of configuration minutia, should compatibility mode be the default mode? Most users in that user base would not have installed nerd-fonts.

onemustpersist avatar Jul 30 '24 16:07 onemustpersist

With the goal of this project being a tool to help people to migrate to Linux by removing a lot of configuration minutia, should compatibility mode be the default mode? Most users in that user base would not have installed nerd-fonts.

I totally agree with you on this it should be default unless stated by the user.

CreativeCodeCat avatar Aug 02 '24 18:08 CreativeCodeCat

After I installed extra/ttf-jetbrains-mono-nerd 3.2.1-2 and relaunched my terminal, the icons show up for me. This is a 200 mb download though, which isn't really ideal, for 3 used icons. Can't those - or some similar icons be bundled?

Kingproone avatar Aug 17 '24 11:08 Kingproone

I'm Using EndeavourOS, my icons show up fine, but I have some Nerdfonts install for other s thing like Terminal ect.. maybe there is a more elegant solution for just the hand full of font/icons. then installing fonts that some people might not want to install.. image

angryguy-win avatar Aug 21 '24 20:08 angryguy-win

I'm Using EndeavourOS, my icons show up fine, but I have some Nerdfonts install for other s thing like Terminal ect.. maybe there is a more elegant solution for just the hand full of font/icons. then installing fonts that some people might not want to install.. image

Yes, It is not an issue with nerd-fonts installed

onemustpersist avatar Aug 21 '24 20:08 onemustpersist

maybe there is a more elegant solution for just the hand full of font/icons. then installing fonts that some people might not want to install..

There is not, this is a terminal app, not a gui app, it doesn't render text itself, it just writes stuff to stdout, and the terminal renders the text. There are a couple of options here:

  • Run with compatibility mode, so that the icons are never displayed in the first place,
  • Have the setup script detect the OS, install a terminal and a font, update the terminal config to use that font, and launch linutil in that terminal, but I feel like this is too "invasive". You run linutil in the compat mode if you don't want the icons, or you just install the font, that's not that hard of a problem tbh, and even without the fonts or the compat mode, you can still use it perfectly fine, its just ugly

JustLinuxUser avatar Aug 21 '24 22:08 JustLinuxUser

maybe there is a more elegant solution for just the hand full of font/icons. then installing fonts that some people might not want to install..

There is not, this is a terminal app, not a gui app, it doesn't render text itself, it just writes stuff to stdout, and the terminal renders the text. There are a couple of options here:

* Run with compatibility mode, so that the icons are never displayed in the first place,

* Have the setup script detect the OS, install a terminal and a font, update the terminal config to use that font, and launch linutil in that terminal, but I feel like this is too "invasive".
  You run linutil in the compat mode if you don't want the icons, or you just install the font, that's not that hard of a problem tbh, and even without the fonts or the compat mode, you can still use it perfectly fine, its just ugly

The ideal would be detect compatible fonts and run in compatibility mode if they are not present

onemustpersist avatar Aug 21 '24 22:08 onemustpersist

@onemustpersist I don't think that would be possible, see here

JustLinuxUser avatar Aug 22 '24 11:08 JustLinuxUser

As discussed above this is not a linutil issue, also this issue has been fixed via the no icons keybind.

ghost avatar Sep 19 '24 15:09 ghost

/close

ghost avatar Sep 19 '24 15:09 ghost