Comments (5)
Thanks for reporting. Patches welcome.
from gkeyring.
Any suggestions on how to debug it?
from gkeyring.
There is a bug that might trigger this if you have a key with the same name test_gkeyring
in another keyring. gk.find_items()
returns items from any keyring. But gk.item_get_info()
is called with keyring from --keyring
argument. If this key doesn't exist a BadArgumentError is thrown and the for-loop silently aborts. So line 269 has to be:
- info = gk.item_get_info_sync(self.keyring, match.item_id)
+ info = gk.item_get_info_sync(match.keyring, match.item_id)
And the program should at least print an error:
- except gk.Error:
+ except gk.Error as e:
+ print e.__class__, e.message
From your usage of the program above
$ gkeyring --keyring graphs_life --n test_gkeyring
one can conclude that you expect that the --keyring
argument is a kind of selector.
But this is only true if you use it in combination with the --id
argument.
To use it as an selector you could write:
for match in matches:
+ if match.keyring != self.keyring:
+ continue
result = {'id': match.item_id, 'secret': match.secret,
If you use it this way maybe it woud be better to allow an undefined keyring in option parsing instead of using the default keyring.
from gkeyring.
Hi, can you create a pull request? Thanks.
from gkeyring.
@chicks-net Could work now.
from gkeyring.
Related Issues (7)
- add feature to block/unblock keyrings HOT 12
- dbus error No such interface 'org.freedesktop.DBus.Properties' HOT 1
- ImportError: No module named gnomekeyring HOT 3
- gnomekeyring not available in Ubuntu 18.04 and Linux Mint 19
- GNOME keyring detection HOT 3
- Change library backend (from gnomekeyring to universal keyring) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gkeyring.