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

Can't uninstall fonts #7

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

Can't uninstall fonts #7

ghost opened this issue Jul 18, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Jul 18, 2021

Hello. lets say I installed Shabnam font using Kateb
kateb install shabnam
Now I want to delete Shabnam. If i delete the folder ~/.local/share/fonts/farsifreefont, Shabnam is deleted from my system but when I run kateb list it still shows the font in installed fonts.

@kiamazi
Copy link
Owner

kiamazi commented Jul 18, 2021

Because the fonts are downloaded directly from versions released on GitHub, kateb needs to know the tags of the latest downloads, so kateb uses a small file in the XDG_CONFIG_HOME directory, to maintain the font versions installed.
When you delete a font file directly, its information remains in the data file.

This is the weakness of kateb, which has no option to uninstall fonts.

Thanks for pointing me to this

@kiamazi kiamazi added the enhancement New feature or request label Jul 18, 2021
@ghost
Copy link
Author

ghost commented Jul 19, 2021

I suggest to modify the json file that stores the data related to the fonts to also store the path and the name of the files that are installed for each font. This way when running kateb list the code can check whether these files exist or not. Also for uninstall option using this method kateb can knows which files need to be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant