Skip to content

Commit

Permalink
Prevent dbus autolaunching (issue #66).
Browse files Browse the repository at this point in the history
  • Loading branch information
alkisg committed Sep 8, 2018
1 parent 67c7038 commit 8361913
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions epoptes-client/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"""
import gettext
import locale
import os

import gi

Expand All @@ -31,3 +32,6 @@
gettext.textdomain('epoptes')
locale.textdomain('epoptes')
gettext = gettext.gettext
# Prevent dbus from getting autolaunched (issue #66)
if not os.getenv('DBUS_SESSION_BUS_ADDRESS'):
os.environ['DBUS_SESSION_BUS_ADDRESS'] = "unix:path=/dev/null"

0 comments on commit 8361913

Please sign in to comment.