Skip to content

Commit

Permalink
#2351 don't enable webcam mixin if webcam flag is False, so 'top' cli…
Browse files Browse the repository at this point in the history
…ent doesn't load it

git-svn-id: https://xpra.org/svn/Xpra/trunk@25159 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 6, 2020
1 parent a272f37 commit 629a361
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/xpra/client/gobject_client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ def __init__(self, opts):
self.printing = False
#don't bother with many of these things for one-off commands:
for x in ("ui_client", "wants_aliases", "wants_encodings",
"wants_versions", "wants_features", "wants_sound", "windows"):
"wants_versions", "wants_features", "wants_sound", "windows",
"webcam",
):
self.hello_extra[x] = False

def setup_connection(self, conn):
Expand Down
4 changes: 3 additions & 1 deletion src/xpra/server/source/webcam_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ class WebcamMixin(StubSourceMixin):
@classmethod
def is_needed(cls, caps : typedict) -> bool:
#the 'webcam' capability was only added in v4,
#so we have to enabled the mixin:
#so we have to enable the mixin by default:
if not caps.boolget("webcam", True):
return False
try:
from xpra.codecs.pillow.decoder import HEADERS
assert HEADERS
Expand Down

0 comments on commit 629a361

Please sign in to comment.