No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with
16 additions and
1 deletions
-
dropship.py
|
@ -40,6 +40,8 @@ class DropShip: |
|
|
self.GLADE_FILE = "dropship.glade" |
|
|
self.GLADE_FILE = "dropship.glade" |
|
|
self.CSS_FILE = "dropship.css" |
|
|
self.CSS_FILE = "dropship.css" |
|
|
|
|
|
|
|
|
|
|
|
self.DOWNLOAD_DIR = os.path.expanduser("~") |
|
|
|
|
|
|
|
|
self._running = loop.create_future() |
|
|
self._running = loop.create_future() |
|
|
self._pending = [] |
|
|
self._pending = [] |
|
|
|
|
|
|
|
@ -132,7 +134,20 @@ class DropShip: |
|
|
|
|
|
|
|
|
self._pending.append(PendingTransfer(code)) |
|
|
self._pending.append(PendingTransfer(code)) |
|
|
|
|
|
|
|
|
# TODO(decentral1se): waits forever... |
|
|
await process.wait() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async def wormhole_recv(self, widget, code): |
|
|
|
|
|
"""Run `wormhole receive` with a pending transfer code.""" |
|
|
|
|
|
process = await asyncio.create_subprocess_exec( |
|
|
|
|
|
"wormhole", |
|
|
|
|
|
"receive", |
|
|
|
|
|
"--accept-file", |
|
|
|
|
|
"--hide-progress", |
|
|
|
|
|
code, |
|
|
|
|
|
stdout=asyncio.subprocess.PIPE, |
|
|
|
|
|
stderr=asyncio.subprocess.PIPE, |
|
|
|
|
|
) |
|
|
await process.wait() |
|
|
await process.wait() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|