Changeset 9123 for branches/pep/src/common/dbus_support.py
- Timestamp:
- 12/12/07 09:44:46 (12 months ago)
- Files:
-
- 1 modified
-
branches/pep/src/common/dbus_support.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pep/src/common/dbus_support.py
r8478 r9123 1 1 ## dbus_support.py 2 2 ## 3 ## Copyright (C) 2005 Yann Le Boulanger <asterix@lagaule.org>3 ## Copyright (C) 2005 Yann Leboulanger <asterix@lagaule.org> 4 4 ## Copyright (C) 2005 Nikos Kouremenos <kourem@gmail.com> 5 5 ## Copyright (C) 2005 Dimitur Kirov <dkirov@gmail.com> 6 6 ## Copyright (C) 2005 Andrew Sayman <lorien420@myrealbox.com> 7 7 ## 8 ## This program is free software; you can redistribute it and/or modify 8 ## This file is part of Gajim. 9 ## 10 ## Gajim is free software; you can redistribute it and/or modify 9 11 ## it under the terms of the GNU General Public License as published 10 ## by the Free Software Foundation; version 2only.12 ## by the Free Software Foundation; version 3 only. 11 13 ## 12 ## This program is distributed in the hope that it will be useful,14 ## Gajim is distributed in the hope that it will be useful, 13 15 ## but WITHOUT ANY WARRANTY; without even the implied warranty of 14 16 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 17 ## GNU General Public License for more details. 16 18 ## 19 ## You should have received a copy of the GNU General Public License 20 ## along with Gajim. If not, see <http://www.gnu.org/licenses/>. 21 ## 17 22 18 import os 23 import os, sys 19 24 20 25 from common import gajim … … 24 29 25 30 try: 31 if sys.platform == 'darwin': 32 import osx.dbus 33 osx.dbus.load(True) 26 34 import dbus 27 35 import dbus.service 28 36 import dbus.glib 29 supported = True # does use have D-Bus bindings?37 supported = True # does user have D-Bus bindings? 30 38 except ImportError: 31 39 supported = False … … 99 107 100 108 def get_interface(interface, path): 101 '''Returns an interface on the current SessionBus. If the interface isn 't109 '''Returns an interface on the current SessionBus. If the interface isn\'t 102 110 running, it tries to start it first.''' 103 111 if not supported:
