Allow sharing files with guest using UI, even with custom profile (#702)

The 9p filesystem is always accessible by the guest, even if the UI is hidden. This will make the file picker UI be shown when needed
This commit is contained in:
hello-smile6 2022-07-14 01:26:13 -07:00 committed by GitHub
parent a50c6e2bbc
commit b96665285b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -733,6 +733,7 @@ Virtio9p.prototype.ReceiveRequest = async function (bufchain) {
marshall.Marshall(["Q"], [inode.qid], this.replybuffer, 7);
this.BuildReply(id, tag, 13);
this.SendReply(bufchain);
this.bus.send("9p-attach");
break;
case 108: // tflush

View file

@ -1268,6 +1268,13 @@
{
init_filesystem_panel(emulator);
}
else
{
emulator.add_listener("9p-attach", function()
{
init_filesystem_panel(emulator);
});
}
$("run").onclick = function()
{