GithubHelp home page GithubHelp logo

Comments (10)

pavelfeldman avatar pavelfeldman commented on August 19, 2024

Systeminfo example is trying to store user settings under the user home folder. It is probably failing on Windows 10. Remove the following line from main.js there:

userDataDir: path.join(os.homedir(), '.carlosysinfo'),

from carlo.

frankhale avatar frankhale commented on August 19, 2024

Thanks for the response, I removed that line but the example still doesn't open a window. The Terminal example seems to function fine though.

from carlo.

pavelfeldman avatar pavelfeldman commented on August 19, 2024

Another thing that Terminal does is detaches itself from the shell via restarting itself, in the very beginning of main.js. Maybe that helps?

if (!process.env.CARLO) {
  child_process.spawn(process.argv[0], [__filename], {
     detached: true,
     env: { CARLO: 1, ...process.env }
  });
  process.exit(0);
  return;
}

from carlo.

frankhale avatar frankhale commented on August 19, 2024

I tried that but still, no window. Not sure what is going on. The example in the README works fine which is like a stripped down version of the systeminfo example. I'll try on another machine soon.

from carlo.

frankhale avatar frankhale commented on August 19, 2024

I'm going to close this as it works on my other Windows 10 computer. Weird! I'll try again later on my weird Windows Surface Book. One thing I have learned is that things behave very oddly on Windows Surface Books sometimes.

from carlo.

salmanstar1 avatar salmanstar1 commented on August 19, 2024

Closed this issue about

from carlo.

ab35 avatar ab35 commented on August 19, 2024

It works fine on surface book 1 here.

from carlo.

frankhale avatar frankhale commented on August 19, 2024

I deleted the repo, redownloaded and it worked fine. Not sure what was going on because I had already deleted several times and downloaded again. Anyway yes its working for me now.

from carlo.

liudonghua123 avatar liudonghua123 commented on August 19, 2024

I have the same problem, and I added some logging and here is the snapshot of my code.

image

from carlo.

ab35 avatar ab35 commented on August 19, 2024

Kindly omit my previous messages (that I deleted) about the localDataDir. It is an error on my part: the default location is within node_modules/carlo/lib and it is created there at startup time when no option is provided by script. I do not really know what happens in your case @liudonghua123 .

from carlo.

Related Issues (20)

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.