Skip to content

Commit 7c0eed2

Browse files
committed
Patch noVNC page to automatically resize to match the remote display
1 parent f776273 commit 7c0eed2

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

deps.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ if(confirm("Enable support for GUI applications via VNC?")) {
4949
await unpack(websockify, ["tar", "xf"]);
5050
Deno.renameSync(dropExtension(websockify), ROOT + "/opt/utils/websockify");
5151

52+
await Deno.run({cmd: ["patch", ROOT + "/opt/vnc_lite.html", "vnc_lite.html.patch"]}).status();
5253
Deno.symlinkSync("../opt/utils/novnc_proxy", ROOT + "/bin/novnc_proxy");
5354
}
5455

vnc_lite.html.patch

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git 1/vnc_lite.html 2/vnc_lite.html
2+
index 8e2f5cb..02ea33c 100644
3+
--- 1/vnc_lite.html
4+
+++ 2/vnc_lite.html
5+
@@ -68,6 +68,7 @@
6+
// successfully connected to a server
7+
function connectedToServer(e) {
8+
status("Connected to " + desktopName);
9+
+ sizeToContent();
10+
}
11+
12+
// This function is called when we are disconnected

0 commit comments

Comments
 (0)