Working on a kickstart file for AlmaLinux 94. Got it to do everything I want, now adding “abnormal” stuff in the kickstart.
I want to set specific global gnome options for every user and can’t find a way to do that. I’m able to run a post-install script as root to do multiple gsettings commands for a specific user, but that user must log in first to get the /run/user/IDNUM/bus socket created. Is this even possible?
Also for the life of me I can’t find where gnome-terminal option are saved. I want to set them from a command line instead of constantly have to log in to the console and setting things manually. Again, ideally I’d like to do this from kickstart, but will settle for a post-install script run by root.
Any suggestions to help me past my ignorance would be greatly appreciated!
Thank you. That was very helpful, but WAY over-complicated for my needs. Found a far easier way to set a user’s configuration from a script run by root after an install. The user has to login in once in order for the dbus files to be created. A very long one-liner looks like:
sudo -u USER_NAME DBUS_SESSION_BUS_ADDRESS=“unix:path=/run/user/USER_ID_NUMBER/bus” gsettings set org.gnome.desktop.interface clock-show-weekday true
For gnome-terminal:
sudo -u USER_NAME DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/USR_ID_NUMBER/bus gsettings set org.gnome.Terminal.Legacy.Profile:/org/gnome/terminal/legacy/profiles:/:$(gsettings get org.gnome.Terminal.ProfilesList default | tr -d ')/