Bug 370189

Summary: kwallet-query --list-entries does not work without folder
Product: [Frameworks and Libraries] frameworks-kwallet Reporter: Christoph Feck <cfeck>
Component: generalAssignee: Valentin Rusu <valir>
Status: CLOSED NOT A BUG    
Severity: normal CC: kdelibs-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Christoph Feck 2016-10-06 09:34:01 UTC
To reproduce:
- type "kwallet-query -l kdewallet" in Konsole
- enter password for in the dialog

Actual result:
- Error "Pass a valid window to KWallet::Wallet::openWallet()."

Expected result:
- List of passwords in kdewallet
Comment 1 Valentin Rusu 2016-11-11 21:53:57 UTC
Seems to me you're not into a KDE session? I'm using kwallet-query from latest sources daily without problems.
Comment 2 Christoph Feck 2016-11-11 22:29:06 UTC
> set | grep KDE | grep SESSION
KDE_FULL_SESSION=true
KDE_SESSION_UID=1000
KDE_SESSION_VERSION=5
XDG_SESSION_DESKTOP=KDE
Comment 3 Christoph Feck 2016-11-11 22:41:09 UTC
Okey, I have to actually pass a --folder for --list-entries to work, in other words, I cannot see the list of available folders.

If this is the intended behavior, please close as invalid.
Comment 4 Valentin Rusu 2016-11-12 18:43:38 UTC
kwallet-query lists folders only from the "passwords" main directory, as seen in the kwallet manager, when invoked with:

$ kwallet-query -l <wallet>

It's real use could be seen here:
https://github.com/valir/kwallet-dmenu

So, as suggested, I'll close this.