plugins/watcher/watcher.js
function getSettings(desktopPath) {
    let settings = {};
    try {
        settings = JSON.parse(
            fs.readFileSync(path.join(desktopPath, 'settings.json'), 'UTF-8')
        );
    } catch (e) {
        return {};
    }
    return settings;
}
function getSettings(desktopPath) {
    let settings = {};
    try {
        settings = JSON.parse(
            fs.readFileSync(path.join(desktopPath, 'settings.json'), 'UTF-8')
        );
    } catch (e) {
        return {};
    }
    return settings;
}
function getSettings ( desktopPath ) { let settings = { } ; try { settings = JSON . parse ( fs . readFileSync ( path . join ( desktopPath , 'settings.json' ) , 'UTF-8' ) ) ; } catch ( e ) { return { } ; } return settings ; }
Tries to read a settings.json file from desktop dir.

@param {string} desktopPath - Path to the desktop dir.
@returns {Object}
Tries to read a settings . json file from desktop dir .