diff options
| author | Lex Neva <github.com@lexneva.name> | 2019-04-10 23:37:16 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2019-04-10 23:37:16 -0400 |
| commit | 9ccf2f552be246f7912e9dc923f8da8ae47fe544 (patch) | |
| tree | 334b9bea8e0837625e551431d06ad061a0a1e098 /lib/gui/electron.py | |
| parent | 75fdfe22deddbfc8a875840cde48844207b7b76e (diff) | |
switch print pdf gui to electron
Diffstat (limited to 'lib/gui/electron.py')
| -rw-r--r-- | lib/gui/electron.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/gui/electron.py b/lib/gui/electron.py new file mode 100644 index 00000000..cad86a16 --- /dev/null +++ b/lib/gui/electron.py @@ -0,0 +1,16 @@ +import os +import subprocess + +from ..utils import get_bundled_dir + + +app_process = None + + +def open_url(url): + global app + + electron_path = os.path.join(get_bundled_dir("electron"), "out", "inkstitch-linux-x64", "inkstitch-gui") + app_process = subprocess.Popen([electron_path, url]) + + return app_process |
