const {clipboard, remote, nativeImage, shell, ipcRenderer, webFrame} = require("electron");

const _             = require("lodash");
const rimraf        = require("rimraf");
const QP            = require("q");

const tmp           = require("tmp");
const path          = require("path");
const moment        = require("moment");
const fs            = require("fs");
const os            = require("os");
const unzip         = require("unzip2");
const pkgInfo       = require("./package.json");
const fontManager   = require("./lib/loader").fontManager;
const QueueHandler  = require("./pencil-core/common/QueueHandler");
const sharedUtil    = require("./pencil-core/common/shared-util");

const dialog        = remote.dialog;

tmp.setGracefulCleanup();

webFrame.registerURLSchemeAsPrivileged("file");
webFrame.registerURLSchemeAsSecure("file");
webFrame.registerURLSchemeAsBypassingCSP("file");
