protected static void setBackground(Path img) throws IOException, InterruptedException {
        if (FileUtil.control(img)) {
            FileUtil.deleteDirectory(SystemInformation.getBackgroundDirectory());
            FileUtil.createDirectory(SystemInformation.getBackgroundDirectory());

            FileUtil.scaleImageTo256kb(img);
            FileUtil.copyFile(img, SystemInformation.getBackgroundDirectory().resolve(Constants.SKIN_BG_NAME), false);

            enableBackgrounds();
        } else {
            disableBackgrounds();
        }
    }