ansible-role-customize-gnome
ansible-role-customize-gnome copied to clipboard
Install fonts for user rather than system-wide?
Hi again @PeterMosmans! :wave: I had a thought while trying out the gnome_fonts
variable here for the first time:
- The
gnome_extensions
,gnome_dconf
, andgnome_gsettings
variables lead to changes for the user, rather than system-wide. - The
gnome_files
variable seems agnostic—it could have a user or system dest set, I guess.
The gnome_fonts
variable installs fonts to a system-wide /usr/local/share/fonts/
location. Do you think it should it instead install them to a user location (such as /home/user/.local/share/fonts
) similar to the first pattern above; or at least support installing to such a location, like the second pattern?
Separately, I haven't used the gnome_packages
variable, but there are a couple of things that confuse me about it:
- It seems specific to
apt
-based distros, since it usesansible.builtin.apt
directly. This likely wouldn't work on a non-apt system, right? If this is a limitation, would it be useful for me to open a separate issue for it? - The task name that uses the variable says
Install (font) packages
, but it seems like it doesn't really have anything to do withfont
packages specifically—it just passes the package list directly to the apt module, right?
Great remarks @grdryn
I agree that the current setup can lead to some confusion as to where is installed what. As in: this should be improved (either documentation, but even better, in the code itself)
The current setup indeed only works for apt
-based distros. Sometimes fonts can be installed by packages, yet the role now only supports apt
.
this should be improved (either documentation, but even better, in the code itself)
I'll try to propose an improvement or two as PRs then :) I'll probably first propose an option to install gnome_fonts
to ~/.local/share/fonts
(or to a user-specified location?), this way that variable hopefully could work without extra privileges.