Skip to content

Commit

Permalink
#899: publish mdns information on OSX and win32 using pybonjour
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@12231 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Mar 27, 2016
1 parent dc5fa98 commit ef06340
Show file tree
Hide file tree
Showing 6 changed files with 2,240 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ def pretty_cmd(cmd):
'bind' : bind,
'socket_dirs' : "".join(("socket-dirs = %s\n" % x) for x in socket_dirs),
'log_dir' : get_default_log_dir(),
'mdns' : bstr(not WIN32),
'mdns' : True,
'dbus_proxy' : bstr(not OSX and not WIN32),
'pulseaudio' : bstr(not OSX and not WIN32),
'pdf_printer' : pdf,
Expand Down
2 changes: 2 additions & 0 deletions src/xpra/net/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@

class ConnectionClosedException(Exception):
pass

XPRA_MDNS_TYPE = '_xpra._tcp.'
2 changes: 1 addition & 1 deletion src/xpra/net/avahi_publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
except:
#not available in all versions of the bindings?
DBusException = Exception
XPRA_MDNS_TYPE = '_xpra._tcp.'
from xpra.net import XPRA_MDNS_TYPE

from xpra.log import Logger
log = Logger("network", "mdns")
Expand Down
Loading

0 comments on commit ef06340

Please sign in to comment.