Commit 68437e5
committed
Server: Allow X cleanup script to be specified
Referring to #490, it is necessary to set $userDBus=1; in
turbovncserver.conf to prevent GNOME shell issues with the Cinnamon
window manager on Mint 22.3 or Ubuntu 24.04. However, with this
configuration, cinnamon-session fails to shut down when Xvnc is killed.
I observed this issue with TigerVNC's systemd-friendly vncsession
approach as well, although the OP did not.
This commit introduces a new $xcleanup variable that allows an optional
X cleanup script to be specified. If specified, vncserver executes the
X cleanup script just before attempting to kill Xvnc. Specifying
$xcleanup="cinnamon-session-quit --logout --no-prompt"; in
turbovncserver.conf effectively works around the issue with Cinnamon.1 parent 340633a commit 68437e5
2 files changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
68 | 70 | | |
69 | 71 | | |
70 | 72 | | |
| |||
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| 91 | + | |
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
1082 | 1082 | | |
1083 | 1083 | | |
1084 | 1084 | | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
1085 | 1090 | | |
1086 | 1091 | | |
1087 | 1092 | | |
| |||
1303 | 1308 | | |
1304 | 1309 | | |
1305 | 1310 | | |
1306 | | - | |
| 1311 | + | |
| 1312 | + | |
1307 | 1313 | | |
1308 | 1314 | | |
1309 | 1315 | | |
| |||
0 commit comments