Skip to content

Commit

Permalink
silence OpenSSL3 + pycryptography legacy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Feb 5, 2023
1 parent 0c12d0d commit c00302f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions xpra/scripts/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ def main(script_file, cmdline):
#turn off gdk scaling to make sure we get the actual window geometry:
os.environ["GDK_SCALE"]="1"
os.environ["GDK_DPI_SCALE"] = "1"
if WIN32 and os.environ.get("CRYPTOGRAPHY_OPENSSL_NO_LEGACY") is None:
os.environ["CRYPTOGRAPHY_OPENSSL_NO_LEGACY"] = "1"
#client side decorations break window geometry,
#disable this "feature" unless explicitly enabled:
if os.environ.get("GTK_CSD") is None:
Expand Down

0 comments on commit c00302f

Please sign in to comment.