Skip to content

Commit 5c6f673

Browse files
Fix path on Windows
1 parent 263bd3e commit 5c6f673

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ ipcMain.on('run-server', (event) => {
152152
let dirname = nodePath.dirname(foundBinary);
153153
serverChild = runProcess(foundBinary, ['SecurityTypes=VncAuth','localhost=1','interface=127.0.0.1','rfbport=55900','PasswordFile='+dirname+nodePath.sep+'plain.bin']);
154154
} else if (process.platform === 'win32') {
155-
serverChild = findAndRunProcess('vnc-software\\uvnc-windows\\x64\\winvnc.exe'); // uses the config file next to the binary
155+
serverChild = findAndRunProcess('uvnc-windows\\x64\\winvnc.exe'); // uses the config file next to the binary
156156
}
157157
if (!serverChild) {
158158
event.reply('run-server-log', "ERROR: Listening for connections using VNC server failed.");
@@ -193,7 +193,7 @@ ipcMain.on('run-client', (event, data) => {
193193
let dirname = nodePath.dirname(foundBinary);
194194
clientChild = runProcess(foundBinary, ['SecurityTypes=VncAuth','PasswordFile='+dirname+nodePath.sep+'plain.bin','127.0.0.1::45900']);
195195
} else if (process.platform === 'win32') {
196-
clientChild = findAndrunProcess('vnc-software\\uvnc-windows\\x64\\vncviewer.exe', ['/password nopassword','localhost:45900']);
196+
clientChild = findAndrunProcess('uvnc-windows\\x64\\vncviewer.exe', ['/password nopassword','localhost:45900']);
197197
}
198198
if (!clientChild) {
199199
event.reply('run-client-log', "ERROR: Outgoing connection using vncviewer failed.");

0 commit comments

Comments
 (0)