Prayag2 / konsave

A command line program written in Python to let you backup your dotfiles and switch to other ones in an instant. Works out-of-the box on KDE Plasma!
GNU General Public License v3.0
959 stars 35 forks source link

[Feature Request] Check for desktop environment on each run #108

Open HondaRulez opened 6 months ago

HondaRulez commented 6 months ago

An empty profile saved when GNOME (was?) installed.

I have an machine with latest Debian12 (all updates) and Gnome. Then I removed the GNOME (by apt) then the KDE desktop was installed.

(also ecryptfs installed on home directory, but this is not matter because I use this on another machine where the konsave works fine.)

The KDE system works as expected, but consave. when executing only a full empty profile was saved.

the konsave install done by same way as on the working machine.

Filesystem is btrfs/ecryptfs on all systems.

Prayag2 commented 4 months ago

This happens because whenever you first run konsave, it will generate config files based on the desktop environment you're using. Since, we don't ship one for GNOME by default, it saves a blank config. Then, when you switched to Plasma, it used the same blank config file (as it only checks for it on the first run). For now, you can do the following-

  1. Delete old configs rm -rf ~/.config/konsave/
  2. Make sure you're in a KDE Plasma session.
  3. Run konsave.

I think it will be better if it checks for the desktop environment on each run as that'll fix a lot of problems users face.