Bug 382193

Summary: Allow reinstallation of fonts from command line
Product: [Applications] systemsettings Reporter: Tristan Miller <psychonaut>
Component: kcm_fontinstAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version: 5.8.6   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=382194
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Tristan Miller 2017-07-10 10:41:40 UTC
The kfontinst command-line tool does not allow a font to be reinstalled from the command line.  This functionality is important because many fonts are under active development, with new versions being released on occasion.  (Also because there exist bugs with the font management application in systemsettings, such as Bug 361960, that prevents fonts from being installed or removed that way.)

Steps to reproduce:
1. Install a font (say, foo.ttf) using any method desired.
2. Attempt to install a font with the same filename using kfontinst:
$ kdesu kfontinst foo.ttf

Observed results:
3. The following error dialog appears:

> Installing — Font Installer
> 
> Error
> 
> /usr/local/share/fonts/f/foo.ttf already exists.
> 
> [ Cancel ]

Expected results:
3. A warning dialog should appear that informs me that the font already exists and asks me whether I want to replace it.  (It would also be helpful if the warning dialog could be bypassed by using a command-line parameter such as --force.)