# -*- coding: utf-8 -*-
from setuphelpers import *

directory = "/usr/share/desktop-directories"

def install():
    if not isdir(directory):
        mkdirs(directory)
    
    install_apt('libasound2 libxi6 libxrender1 libxtst6')
    install_apt('desktop-file-utils')
    install_apt('xdg-utils')

    version = Version(control.get_software_version(),4)

    install_deb(glob.glob("jailer*.deb")[0])


def uninstall():
    uninstall_apt("jailer-database-tools")
