Skip to content
Snippets Groups Projects
Commit 432f6d6b authored by Daniel Brötzmann's avatar Daniel Brötzmann Committed by Philipp Hörist
Browse files

Features: Add gsound and geoclue detection

parent ad3e2103
No related branches found
No related tags found
No related merge requests found
......@@ -20,6 +20,7 @@
# along with Gajim. If not, see <http://www.gnu.org/licenses/>.
import os
import sys
from collections import namedtuple
import gi
......@@ -84,6 +85,9 @@ def get_features(self):
['name', 'available', 'tooltip',
'dependency_u', 'dependency_w', 'enabled'])
notification_sounds_available = (
app.is_installed('GSOUND') or sys.platform in ('win32', 'darwin'))
notification_sounds_enabled = app.config.get('sounds_on')
spell_check_enabled = app.config.get('use_speller')
auto_status = [app.config.get('autoaway'), app.config.get('autoxa')]
......@@ -112,6 +116,19 @@ def get_features(self):
_('Requires: pybonjour and bonjour SDK running (%(url)s)')
% {'url': 'https://developer.apple.com/opensource/)'},
None),
Feature(_('Location detection'),
app.is_installed('GEOCLUE'),
_('Enables Gajim to be location-aware, if the user decides '
'to publish the device’s location'),
_('Requires: geoclue'),
_('Feature is not available under Windows'),
None),
Feature(_('Notification Sounds'),
notification_sounds_available,
_('Enables Gajim to play sounds for various notifications'),
_('Requires: gsound'),
_('No additional requirements'),
notification_sounds_enabled),
Feature(_('Secure Password Storage'),
self.some_keyring_available(),
_('Enables Gajim to store Passwords securely instead of '
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment