diff --git a/PKGBUILD b/PKGBUILD index db0e7ed..0ec2286 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -5,7 +5,7 @@ pkgrel=3 pkgdesc="Flutter GUI for installing crystal" arch=('any') url="https://git.tar.black/crystal/programs/jade_gui" -depends=('gtk3' 'jade' 'openssl') +depends=('gtk3' 'jade' 'openssl' 'python-websockets' 'python-pycryptodome' 'inetutils') makedepends=('clang' 'ninja' 'cmake' 'git' 'unzip' 'flutter' 'flutter-group-pacman-hook') source=("gui::git+${url}.git") diff --git a/scripts/websocket.py b/scripts/websocket.py index 3c9ad7a..f5c05a9 100755 --- a/scripts/websocket.py +++ b/scripts/websocket.py @@ -59,7 +59,7 @@ async def handler(websocket): config = open('/tmp/jade.json', 'w') config.write(data) config.close() - subprocess.check_output(["bash", "-c", "sudo /usr/bin/jade config /tmp/jade.json"]) + subprocess.check_output(["gnome-terminal", "--", "/bin/bash -c", "/usr/bin/sudo /usr/bin/jade config /tmp/jade.json"]) await websocket.send(json.dumps({"type": "response", "data": "Finished Installing"})) else: await websocket.send(json.dumps({"type": encrypt("response", aeskey, iv), "data": encrypt("Invalid Request", aeskey, iv)}))