Skip to content

Commit

Permalink
MainService: extract VNC client from assets to internal dir
Browse files Browse the repository at this point in the history
re #6
  • Loading branch information
bk138 committed Aug 15, 2024
1 parent b6cb8ee commit e9ea9fa
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@

import androidx.core.app.NotificationCompat;

import java.io.File;
import java.net.InterfaceAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
Expand Down Expand Up @@ -260,6 +261,13 @@ public void onAvailable(@NonNull Network network) {
Load defaults
*/
mDefaults = new Defaults(this);

/*
Copy embedded HTML VNC client to directory accessible by embedded HTTP server.
*/
String clientPath = getFilesDir().getAbsolutePath() + File.separator + "novnc";
Utils.deleteRecursively(clientPath);
Utils.copyAssetsToDir(this, "novnc", clientPath);
}


Expand Down

0 comments on commit e9ea9fa

Please sign in to comment.