Skip to content

Commit

Permalink
#2351 don't enable dbus mixin for clients that have no methods to exp…
Browse files Browse the repository at this point in the history
…ose via dbus

git-svn-id: https://xpra.org/svn/Xpra/trunk@25164 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 6, 2020
1 parent b2ffd63 commit 1aab602
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/xpra/server/source/dbus_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@
# later version. See the file COPYING for details.

from xpra.server.source.stub_source_mixin import StubSourceMixin
from xpra.util import typedict


"""
Expose the ClientConnection using a dbus service
"""
class DBUS_Mixin(StubSourceMixin):

@classmethod
def is_needed(cls, caps : typedict) -> bool:
#the DBUSSource we create is only useful if the client
#supports one of the mixins it exposes:
return caps.boolget("windows", False) or caps.boolget("sound", False)

def __init__(self):
self.dbus_control = False
self.dbus_server = None
Expand Down

0 comments on commit 1aab602

Please sign in to comment.