-
-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
23 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
diff --git a/xpra/scripts/main.py b/xpra/scripts/main.py | ||
index 58c8bf6464..36f4b3cd3d 100755 | ||
index 7806612e05..4c7a0ec2dd 100755 | ||
--- a/xpra/scripts/main.py | ||
+++ b/xpra/scripts/main.py | ||
@@ -389,11 +389,7 @@ def run_mode(script_file:str, cmdline, error_cb, options, args, mode:str, defaul | ||
"seamless", "desktop", "shadow", "shadow-screen", "expand", | ||
"upgrade", "upgrade-seamless", "upgrade-desktop", | ||
) and not display_is_remote and use_systemd_run(options.systemd_run): | ||
- #make sure we run via the same interpreter, | ||
- #inject it into the command line if we have to: | ||
@@ -444,13 +444,7 @@ def run_mode(script_file: str, cmdline, error_cb, options, args, full_mode: str, | ||
"seamless", "desktop", "shadow", "shadow-screen", "expand", | ||
"upgrade", "upgrade-seamless", "upgrade-desktop", | ||
) and not display_is_remote and options.daemon and use_systemd_run(options.systemd_run): | ||
- # make sure we run via the same interpreter, | ||
- # inject it into the command line if we have to: | ||
argv = list(cmdline) | ||
- if argv[0].find("python")<0: | ||
- argv.insert(0, "python%i.%i" % (sys.version_info.major, sys.version_info.minor)) | ||
return systemd_run_wrap(mode, argv, options.systemd_run_args, user=getuid()!=0) | ||
- if argv[0].find("python") < 0: | ||
- major, minor = sys.version_info.major, sys.version_info.minor | ||
- python = which("python%i.%i" % (major, minor)) or which("python%i" % major) or which("python") or "python" | ||
- argv.insert(0, python) | ||
return systemd_run_wrap(mode, argv, options.systemd_run_args, user=getuid() != 0) | ||
configure_env(options.env) | ||
configure_logging(options, mode) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.