Closed Tjzabel closed 6 years ago
It may be a good idea to create the initial settings.ini
file instead of appending to it during the rpm install. This would solve the dark-theme issue, but may become a problem if a user is installing this package with a pre-existing settings.ini
file.
A fix to this issue would be to first check if there is a pre-existing file. If so, simply add and change the dark-theme value. Otherwise, create the file in /etc/skel/
similar to how the tigeros-scripts package does its desktop file install.
Problem
Using this line of code, the universal dark theme is set for the user. However, this package is installed when building the ISO from the kickstart, which means the "user" is root.
In doing so, there is no
~/.config/gtk-3.0/settings.ini
file for the root user. This line of code must be executed after the user is created, not before.Solution
Currently, the only solution I can think of, would be creating this file in
/etc/skel
. However, I'm not sure how this would work, since the~/.config/gtk-3.0
directory is created by gnome, and is not a default directory. The most effective solution is yet to be known.