Skip to content

Commit

Permalink
#1104: fixup dbus env save and restore
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@12027 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Feb 24, 2016
1 parent 50b9dec commit ac0f62e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/xpra/scripts/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ def get_dbus_pid():

def get_dbus_env():
env = {}
for k,load in (
for n,load in (
("ADDRESS", _get_str),
("PID", _get_int),
("WINDOW_ID", _get_int)):
k = "DBUS_SESSION_BUS_%s" % x
k = "DBUS_SESSION_BUS_%s" % n
try:
v = load(k)
if v:
Expand All @@ -119,11 +119,11 @@ def save_dbus_env(env):
#DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-B8CDeWmam9,guid=b77f682bd8b57a5cc02f870556cbe9e9
#DBUS_SESSION_BUS_PID=11406
#DBUS_SESSION_BUS_WINDOWID=50331649
for k,conv,save in (
for n,conv,save in (
("ADDRESS", str, _save_str),
("PID", int, _save_int),
("WINDOW_ID", int, _save_int)):
k = "DBUS_SESSION_BUS_%s" % k
k = "DBUS_SESSION_BUS_%s" % n
v = env.get(k)
if v is None:
continue
Expand Down

0 comments on commit ac0f62e

Please sign in to comment.