Skip to content

Commit

Permalink
#3778 don't specify a default username
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jul 12, 2023
1 parent 209dace commit b4b7432
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 3 additions & 1 deletion xpra/client/base/client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,11 @@ def make_hello_base(self) -> Dict[str,Any]:
if digest not in digests:
digests.append(digest)
capabilities.update(FilePrintMixin.get_caps(self))
if self.username:
#set for authentication:
capabilities["username"] = self.username
capabilities.update({
"uuid" : self.uuid,
"username" : self.username, #for authentication
"compression_level" : self.compression_level,
"version" : vparts(XPRA_VERSION, FULL_INFO+1),
"packet-types" : tuple(self._aliases.values()),
Expand Down
7 changes: 1 addition & 6 deletions xpra/scripts/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -906,11 +906,6 @@ def get_defaults():
get_download_dir, get_remote_run_xpra_scripts,
get_sessions_dir, get_socket_dirs, get_client_socket_dirs,
)
try:
from xpra.platform.info import get_username
username = get_username()
except Exception:
username = ""
conf_dirs = [os.environ.get("XPRA_CONF_DIR")]
build_root = os.environ.get("RPM_BUILD_ROOT")
if build_root:
Expand Down Expand Up @@ -951,7 +946,7 @@ def get_defaults():
GLOBAL_DEFAULTS = {
"encoding" : "auto",
"title" : "@title@ on @hostinfo@",
"username" : username,
"username" : "",
"password" : "",
"wm-name" : DEFAULT_NET_WM_NAME,
"session-name" : "",
Expand Down

0 comments on commit b4b7432

Please sign in to comment.