SUMMARY When attempting to write a new entry using the kwallet-query CLI, the command silently ignores the write operation and returns with a 0 exit code, indicating success despite the operation not being performed as expected. The issue lies within the QueryDriver::writeValue() function in querydriver.cpp, where the kind variable is assigned KWallet::Wallet::Unknown, causing the function to prematurely call quit(). STEPS TO REPRODUCE Attempt to write a new entry in KWallet using the kwallet-query CLI. echo "test" | kwallet-query kdewallet -w mypassword OBSERVED RESULT The command returns with a 0 exit code without actually writing the entry. Check that entry does not exist via KWalletManager or via cli: kwallet-query kdewallet -l EXPECTED RESULT kwallet-query command should correctly write the new entry with the provided data, and the CLI should reflect success or failure based on the actual outcome. SOFTWARE/OS VERSIONS OS Debian 13 (trixie) KDE Plasma Version: 5.27.11 KDE Frameworks Version: 5.115.0 Qt Version: 5.15.13 ADDITIONAL INFORMATION Workaround: 1. Create a new entry manually via the GUI in KWalletManager. 2. Use kwallet-query to write the password or data into the existing entry created via the GUI.
*** Bug 501233 has been marked as a duplicate of this bug. ***
*** Bug 509397 has been marked as a duplicate of this bug. ***