Coder Social home page Coder Social logo

app-path's Introduction

app-path's People

Contributors

bendingbender avatar richienb avatar sergiou87 avatar sindresorhus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

app-path's Issues

CHANGELOG missing

I just saw the package is updated from v2.2.0 to v3.0.0 which implies breaking changes, but I can't find any CHANGELOG to check them all out.

Would you be so kind to provide us with a decent CHANGELOG please? 🙂

Thanks for all your great work @sindresorhus! 🙂

Cross platform?

Any plans to make this to work cross-platform (Mac, Windows, Linux)?

ENOTDIR error

in electron v6.0.11 I am getting this error message only in the built version of the app.

Error: spawn ENOTDIR
    at ChildProcess.spawn (internal/child_process.js:394:11)
    at Object.spawn (child_process.js:548:9)
    at Module.module.exports (/Applications/myapp/Contents/Resources/app.asar/node_modules/execa/index.js:205:26)
    at Function.module.exports.stdout (/Applications/myapp/Contents/Resources/app.asar/node_modules/execa/index.js:319:45)
    at appPath (/Applications/myapp/Contents/Resources/app.asar/node_modules/app-path/index.js:22:22)
    at createAppPath (/Applications/myapp/Contents/Resources/app.asar/src/helpers/saveDefaultBlockedAppsAndWebsites.helper.js:74:24)
    at Array.map (<anonymous>)
    at EventEmitter.saveDefaultBlockedAppsAndWebsites (/Applications/myapp/Contents/Resources/app.asar/src/helpers/saveDefaultBlockedAppsAndWebsites.helper.js:38:43)
    at EventEmitter.emit (events.js:200:13)
    at WebContents.<anonymous> (/Applications/myapp/Contents/Resources/electron.asar/browser/api/web-contents.js:334:21) {
  errno: 'ENOTDIR',
  code: 'ENOTDIR',
  syscall: 'spawn'
}

using like so :

const createAppPath = async app => {
  try {
    const name = app.charAt(0).toUpperCase() + app.slice(1);
    const path = await appPath(name);

    return {
      name,
      path,
    };
  } catch (e) {
    console.error('create app path error', e);
    return null;
  }
};

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.