diff --git a/install b/install index 1610fde..5f6baf7 100755 --- a/install +++ b/install @@ -47,6 +47,13 @@ class Install(Thread): except: apt_packages += ' python3.4 python3-pil python3-lxml' dnf_packages += ' python3-pillow python3-lxml' + try: + import gi + gi.require_version('Gtk', '3.0') + from gi.repository import Gtk, GLib + except: + apt_packages += ' gir1.2-gtk-3.0' + #dnf_packages += ' webkitgtk4' try: import OpenSSL from OpenSSL.SSL import TLSv1_2_METHOD @@ -114,7 +121,7 @@ class Install(Thread): def download(self, url, filename): makefolder(filename) - print(os.path.basename(filename)) + print('downloading',os.path.basename(filename)) with open(filename, 'wb') as f: with closing(urlopen(url)) as u: size = int(u.headers.get('content-length', 0)) diff --git a/oml/integration.py b/oml/integration.py index 3323bab..aa3a3db 100644 --- a/oml/integration.py +++ b/oml/integration.py @@ -2,7 +2,8 @@ import os import sys import settings -from utils import run, makefolder +import ox +from utils import run root_dir = os.path.dirname(settings.base_dir) @@ -58,6 +59,7 @@ def install_launchd(): def install_xdg(): app = os.path.expanduser('~/.local/share/applications/openmedialibrary.desktop') + ox.makedirs(os.path.dirname(app)) with open(app, 'w') as fd: fd.write('''[Desktop Entry] Type=Application