Open ghost opened 3 years ago
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
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
.
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 usesudo kateb list
it only shows me vazir.