Commit 1b0877f5 authored by Sven Herzberg's avatar Sven Herzberg Committed by Craig Keogh

execute on systems without python-dbus as well

* jhbuild/utils/trayicon.py: some systems (e.g. lots of scratchbox setups)
  don't have many python bindings available/installed. This commit makes
  jhbuild work in such environments as well
parent 870f1472
......@@ -21,12 +21,17 @@ import sys
import os
import subprocess
import signal
import dbus
try:
import dbus
except ImportError:
dbus = None
class TrayIcon:
proc = None
def __init__(self, config):
if dbus is None:
return
if config and config.notrayicon:
return
if not os.environ.get('DISPLAY'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment