Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mesonium
gajim
Commits
07fc1dfa
Commit
07fc1dfa
authored
4 years ago
by
André
Committed by
Philipp Hörist
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Feature: Fix keyring availability check
parent
8e6df65e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gajim/gtk/features.py
+5
-12
5 additions, 12 deletions
gajim/gtk/features.py
with
5 additions
and
12 deletions
gajim/gtk/features.py
+
5
−
12
View file @
07fc1dfa
...
...
@@ -23,7 +23,6 @@
import
sys
from
collections
import
namedtuple
import
gi
from
gi.repository
import
Gtk
from
gi.repository
import
Gdk
...
...
@@ -137,11 +136,10 @@ def _get_features(self):
self
.
_some_keyring_available
(),
_
(
'
Enables Gajim to store Passwords securely instead of
'
'
storing them in plaintext
'
),
_
(
'
Requires: libsecret and a provider (such as GNOME
'
'
Keyring and KSecretService)
'
),
_
(
'
Requires: gnome-keyring or kwallet
'
),
_
(
'
Windows Credential Vault is used for secure password
'
'
storage
'
),
None
),
app
.
config
.
get
(
'
use_keyring
'
)
),
Feature
(
_
(
'
Spell Checker
'
),
app
.
is_installed
(
'
GSPELL
'
),
_
(
'
Enables Gajim to spell check your messages while
'
...
...
@@ -160,14 +158,9 @@ def _get_features(self):
@staticmethod
def
_some_keyring_available
():
if
os
.
name
==
'
nt
'
:
return
True
try
:
gi
.
require_version
(
'
Secret
'
,
'
1
'
)
from
gi.repository
import
Secret
# pylint: disable=unused-import
except
(
ValueError
,
ImportError
):
return
False
return
True
import
keyring
backends
=
keyring
.
backend
.
get_all_keyring
()
return
any
(
keyring
.
core
.
recommended
(
backend
)
for
backend
in
backends
)
@staticmethod
def
_idle_available
():
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment