Bug 370189 - kwallet-query --list-entries does not work without folder
Summary: kwallet-query --list-entries does not work without folder
Status: CLOSED NOT A BUG
Alias: None
Product: frameworks-kwallet
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Valentin Rusu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-06 09:34 UTC by Christoph Feck
Modified: 2016-11-12 18:43 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.