Skip to content

Commit

Permalink
match switch to strings, add missing type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jul 16, 2023
1 parent 102ead7 commit 5529e73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion xpra/server/dbus/dbus_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import os
import shlex
from subprocess import Popen, PIPE
from typing import Tuple
from typing import Tuple, Dict

from xpra.os_util import POSIX
from xpra.scripts.config import FALSE_OPTIONS
Expand Down
6 changes: 3 additions & 3 deletions xpra/x11/x11_server_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ def configure_best_screen_size(self) -> Tuple[int,int]:
return root_w, root_h


def init_dbus(self, dbus_pid:int, dbus_env:Dict[bytes,bytes]) -> None:
def init_dbus(self, dbus_pid:int, dbus_env:Dict[str,str]) -> None:
dbuslog("init_dbus(%s, %s)", dbus_pid, dbus_env)
if dbus_pid and dbus_env:
os.environb.update(dbus_env)
os.environ.update(dbus_env)
self.dbus_pid = dbus_pid
self.dbus_env = dbus_env
#now we can save values on the display
Expand All @@ -154,7 +154,7 @@ def _save_str(prop_name, s):
("PID", int, _save_int),
("WINDOW_ID", int, _save_int)):
k = f"DBUS_SESSION_BUS_{n}"
v = dbus_env.get(strtobytes(k))
v = dbus_env.get(k)
if v is None:
continue
try:
Expand Down

0 comments on commit 5529e73

Please sign in to comment.