Theming Yast

So, I’m trying to get Yast to match my regular user theme. It’s the one outlier in my desktop experience. I know it’s b/c that app runs as root but I haven’t figured out a nice simple way to copy all the theming to the root user. Before I try it, can I get away with copying some directories from my local user directory to /root? I tried copying the theme directories to /usr/share/themes and /usr/share/plasma/desktoptheme but when I launch system settings with kdesu the themes are not visible under Global Themes so I’m guessing that list is coming from somewhere else. Honestly not sure.

This is probably not what you want to hear as a solution, but I would advice against littering the home directory of root with all sorts of GUI oriented configuration files. This is basically an extension of “never use root when it is not needed”. There is no need to put those files there as root, so don’t do it. Just my two cents.

I agree, I’m not looking to litter the root user with a bunch of gui config files. I was looking for more of a surgical approach to getting yast to follow my theming. I can obviously login as the root user and configure the theme manually. What I can’t figure out is where System Settings is looking for themes when logged in as root. I copied my custom themes into what I thought are the standard locations under the filesystem but they were not visible under System Settings when logged in root. Maybe I missed something.

See also:
https://en.opensuse.org/SDB:YaST_tricks
https://github.com/yast/yast-theme

But be careful…

After my other post, you shall not be surprised: As you should never log in as root in the GUI, it is impossible to even reach to System Settings.

Yeah, I’m not too worried. I’m running in a VM with a snapshot so if I hose something I have a backup. I was actually just running kdesu systemsettings5 from krunner but I couldn’t pick up anything but the standard themes. I’ll check out your other links, thanks. It’s not a major bother so I’m not going to waste much time on it.

I pretty sure you mean a VM snapshot. If you’re talking about btrfs snapshot, then no, you have no “backup” as /root is a separate subvolume than /. In any case, the content of /root is just the home directory for user root, you can just wipe its content and move on.