This does not work because many apps use the desktop environment to decide which store to talk to instead of using the bus. This results in the change being largely ignored.
This is a comprehensive guide. It assumes you are running a standard Linux distribution (Arch, Fedora, Debian/Ubuntu based).
Guide
Part 1: The Backup (Crucial)
Since Timeshift does not back up your home directory secrets, we must do this manually.
1. Create a System Snapshot (Timeshift)
Open Timeshift and create a new Snapshot. Label it “Before Secret Service Migration”.
2. Create a User Data Backup
Open your terminal. We will archive your KWallet data, your GNOME Keyring data (if any exists), and the configs for the apps likely to be affected (Chrome, VS Code).
Note: I am excluding cache folders to keep the file size small.
# Create a backup directorymkdir -p ~/migration_backup# Archive your secrets and app configstar -czvf ~/migration_backup/secrets_and_configs.tar.gz \ --ignore-failed-read \ ~/.local/share/kwalletd \ ~/.config/kwalletrc \ ~/.local/share/keyrings \ ~/.config/google-chrome/Default/Login\ Data \ ~/.config/Code/User/globalStorage \ ~/.config/1Password
If the reply gives a string like "string :1.75", It works.
To be 100% sure it’s GNOME Keyring, run ps aux | grep gnome-keyring and check if the daemon is running.
Step 6: Re-authenticate Apps
Open 1Password. It will ask for your Master Password. Enter it. It should now sync with GNOME Keyring. Close 1Password and reopen it—it should now ask for Biometrics/PIN (or whatever quick unlock you set).
Open VS Code. You will likely see a “Sync Turned Off” warning. Click it and sign in to GitHub.
Part 3: Setting up the Window Manager
Now that your backend is standardized, here is how you ensure it works when you switch to i3/Sway.
Add this to your WM startup config (e.g., ~/.config/i3/config or ~/.xinitrc):
# Start GNOME Keyring (if not already started by PAM)exec --no-startup-id /usr/bin/gnome-keyring-daemon --start --components=secrets
Part 4: Restoration (The “Undo” Button)
If things are broken and you want to go back to KWallet completely:
1. Restore System Files (Optional but recommended)
If you edited /etc/pam.d/login, undo those changes manually using sudo nano. If you are unsure what you changed, use Timeshift to restore the system snapshot you created in Part 1.
2. Reset User Configs
Open a terminal.
Kill the GNOME daemon:
killall gnome-keyring-daemon
Restore your backup (This overwrites the current configs with your old ones):
tar -xzvf ~/migration_backup/secrets_and_configs.tar.gz -C /
Note: The -C / ensures the files go back to their absolute paths in /home/user/...
3. Re-enable KWallet Secret Service
If you didn’t run the tar command above, manually edit ~/.config/kwalletrc and remove the [org.freedesktop.secrets] section or set apiEnabled=true.
4. Reboot
Restart your computer. KWallet will reclaim the bus, and your apps will find their old data (cookies, tokens) exactly where you left them.