Skip to content

Commit

Permalink
locate the exec-wrapper as a command before converting to an absolute…
Browse files Browse the repository at this point in the history
… path
  • Loading branch information
totaam committed Apr 2, 2021
1 parent 47308bd commit a340bac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions xpra/scripts/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
WIN32, OSX, POSIX,
osexpand, getuid, getgid, get_username_for_uid,
is_Debian, is_Ubuntu, is_arm,
which,
)

def warn(msg):
Expand Down Expand Up @@ -1440,6 +1441,11 @@ def fixup_clipboard(options):
options.clipboard_direction = "disabled"

def abs_paths(options):
ew = options.exec_wrapper
if ew and not os.path.isabs(ew):
ew = which(ew)
if ew:
options.exec_wrapper = ew
#convert to absolute paths before we daemonize
for k in ("clipboard-filter-file",
"tcp-encryption-keyfile", "encryption-keyfile",
Expand Down

0 comments on commit a340bac

Please sign in to comment.