diff options
author | onefang | 2021-08-04 15:06:52 +1000 |
---|---|---|
committer | onefang | 2021-08-04 15:06:52 +1000 |
commit | d4307e58cb6d902c5cb16a65410e0266b212cbb7 (patch) | |
tree | 20f07876c6b54c9a6867963a520e7220cf80d435 /src/sledjchisl/sledjchisl.c | |
parent | Stop printing "mono" when we check if a sim is running. (diff) | |
download | opensim-SC-d4307e58cb6d902c5cb16a65410e0266b212cbb7.zip opensim-SC-d4307e58cb6d902c5cb16a65410e0266b212cbb7.tar.gz opensim-SC-d4307e58cb6d902c5cb16a65410e0266b212cbb7.tar.bz2 opensim-SC-d4307e58cb6d902c5cb16a65410e0266b212cbb7.tar.xz |
Start tmux with a huge screen size, to work around OpenSim bug.
Diffstat (limited to '')
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 92b5f30..65f51f0 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -7177,8 +7177,9 @@ jit library is loaded or the JIT compiler will not be activated. | |||
7177 | if (strcmp(pw->pw_name, scUser) == 0) | 7177 | if (strcmp(pw->pw_name, scUser) == 0) |
7178 | { | 7178 | { |
7179 | I("Not running inside the proper tmux server, starting it."); | 7179 | I("Not running inside the proper tmux server, starting it."); |
7180 | snprintf(toybuf, sizeof(toybuf), | 7180 | snprintf(toybuf, sizeof(toybuf), |
7181 | "export PATH='%s:$PATH'; %s %s/%s new-session -d -s %s -n '%s' bash -c 'export PATH=%s:$PATH; bash' \\; split-window -vp 50 -t '%s:' " | 7181 | // Set x,y to huge values, to work around an OpenSim bug. |
7182 | "export PATH='%s:$PATH'; %s %s/%s new-session -d -x 256 -y 420 -s %s -n '%s' bash -c 'export PATH=%s:$PATH; bash' \\; split-window -vp 50 -t '%s:' " | ||
7182 | "bash -c 'export PATH=%s:$PATH; /usr/bin/valgrind --leak-check=full ./sledjchisl; cd %s/current/bin; bash'", | 7183 | "bash -c 'export PATH=%s:$PATH; /usr/bin/valgrind --leak-check=full ./sledjchisl; cd %s/current/bin; bash'", |
7183 | scBin, Tcmd, scRun, Tsocket, Tconsole, Ttab, scBin, Tconsole, scBin, scBin, scRoot); | 7184 | scBin, Tcmd, scRun, Tsocket, Tconsole, Ttab, scBin, Tconsole, scBin, scBin, scRoot); |
7184 | } | 7185 | } |
@@ -7188,7 +7189,8 @@ jit library is loaded or the JIT compiler will not be activated. | |||
7188 | // The sudo is only so that the session is owned by opensim, otherwise it's owned by whoever ran this script, which is a likely security hole. | 7189 | // The sudo is only so that the session is owned by opensim, otherwise it's owned by whoever ran this script, which is a likely security hole. |
7189 | // After the session is created, we rely on the scRun directory to be group sticky, so that anyone in the opensim group can attach to the tmux socket. | 7190 | // After the session is created, we rely on the scRun directory to be group sticky, so that anyone in the opensim group can attach to the tmux socket. |
7190 | snprintf(toybuf, sizeof(toybuf), | 7191 | snprintf(toybuf, sizeof(toybuf), |
7191 | "sudo -Hu %s %s %s/%s new-session -d -s %s -n '%s' bash -c 'export PATH=%s:$PATH; bash' \\; split-window -vp 50 -t '%s:' " | 7192 | // Set x,y to huge values, to work around an OpenSim bug. |
7193 | "sudo -Hu %s %s %s/%s new-session -d -x 256 -y 420 -s %s -n '%s' bash -c 'export PATH=%s:$PATH; bash' \\; split-window -vp 50 -t '%s:' " | ||
7192 | "bash -c 'export PATH=%s:$PATH; /usr/bin/valgrind --leak-check=full ./sledjchisl; cd %s/current/bin; bash'", | 7194 | "bash -c 'export PATH=%s:$PATH; /usr/bin/valgrind --leak-check=full ./sledjchisl; cd %s/current/bin; bash'", |
7193 | scUser, Tcmd, scRun, Tsocket, Tconsole, Ttab, scBin, Tconsole, scBin, scRoot); | 7195 | scUser, Tcmd, scRun, Tsocket, Tconsole, Ttab, scBin, Tconsole, scBin, scRoot); |
7194 | } | 7196 | } |