I want to experiment and find a way how to cleanly switch from GNOME to KDE, without creating a new user profile etc.
Packages
To make this simple, I will use Atomic Desktops as base, so the packages change will just be a rpm-ostree rebase
.
But the issues are in the mutable areas, and I want to clean them up as much as possible.
File Additions
KDE Plasma will install default configurations for all it’s apps, and also the fonts (currently Noto Sans) and icons (Breeze).
So nothing needs to be added manually, it will create them all from a template somewhere.
File Deletions
So now let’s find all things we need to remove to make this smooth.
I want to avoid GUI stuff like “remove all GNOME extensions” and instead do this via CLI, which can be scripted.
Logout
First you should logout of your GUI session to prevent from removing desktop components while in use.
gnome-session-quit --logout --no-prompt
Then exit to TTY, by using Ctrl
+Alt
+F2
Login with your username and password.
Extensions
Simply remove the entire directory
rm -rf ~/.local/share/gnome-shell
Icons
rm -rf ~/.icons #deprecated
rm -rf ~/.local/share/icons
rm -f ~/gtkrc-2.0
Fonts
rm -rf ~/.fonts #deprecated
rm -rf ~/.local/share/fonts
Flatpaks
Only removing unneeded apps. All the others are choice, and GNOME apps on KDE work fine.
flatpak remove --delete-data -y extensionmanager flatseal
flatpak remove --user --delete-data -y extensionmanager flatseal