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

kateb list doesn't list all fonts #8

Open
ghost opened this issue Jul 18, 2021 · 2 comments
Open

kateb list doesn't list all fonts #8

ghost opened this issue Jul 18, 2021 · 2 comments
Labels
question Further information is requested

Comments

@ghost
Copy link

ghost commented Jul 18, 2021

I don't whether this is a design decision or a bug. Let's say I have entered the following commands:
kateb install shabnam
sudo kateb install vazir
now if I use ‍kateb list it only shows me shabnam and if I use sudo kateb list it only shows me vazir.

@kiamazi
Copy link
Owner

kiamazi commented Jul 18, 2021

Sudo is a command to execute user commands through the root user, when you run sudo kateb list, it will show you the fonts installed by the root user, these fonts are widely available in the system by all users

when you run kateb list, it will show the fonts installed by the current user, and are only available to this user

@kiamazi kiamazi added the question Further information is requested label Jul 18, 2021
@ghost
Copy link
Author

ghost commented Jul 19, 2021

It makes sense that sudo kateb list only shows the fonts that are available by all users but I think kateb list should show both the fonts that are installed by the user and the fonts that are available system wide. I took a look at the source code and currently it's impossible to do so due to the fact that root user's config files are stored in /root/.config/kateb and a user normally doesn't have read access to there. So I suggest to move the config files for system wide fonts to another directory (/etc seems like a good place) that way it's possible to see all of the fonts when running kateb list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant