Lines 3-8
Link Here
|
3 |
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any |
3 |
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any |
4 |
# later version. See the file COPYING for details. |
4 |
# later version. See the file COPYING for details. |
5 |
|
5 |
|
|
|
6 |
import os |
6 |
from xpra.os_util import strtobytes, bytestostr |
7 |
from xpra.os_util import strtobytes, bytestostr |
7 |
import traceback |
8 |
import traceback |
8 |
import threading |
9 |
import threading |
Lines 163-165
def nonl(x):
Link Here
|
163 |
|
164 |
|
164 |
def xor(s1,s2): |
165 |
def xor(s1,s2): |
165 |
return ''.join(chr(ord(a) ^ ord(b)) for a,b in zip(s1,s2)) |
166 |
return ''.join(chr(ord(a) ^ ord(b)) for a,b in zip(s1,s2)) |
|
|
167 |
|
168 |
|
169 |
def is_unity(): |
170 |
return os.environ.get("XDG_CURRENT_DESKTOP", "").lower() == "unity" |