Code Monkey home page Code Monkey logo

Comments (4)

removogel avatar removogel commented on June 13, 2024 1

Its the same issue at Linux, config.json and DATAROOT-folder are created in the home folder. After moving it to the application folder i was able to start it and change the paths in the config.

from spx-gc.

TuomoKu avatar TuomoKu commented on June 13, 2024

Some more findings:
a) only effects binary package version of SPX-GC
b) The actual issue: Mac defaults to User's home directory (such as /Users/John ) when a Terminal is started by doubleclicking on any executable shell program. When the same program is started from terminal prompt it works as expected...

Currently SPX-GC uses process.cwd() to get the startup path. Another approach should be taken to figure out if we app is running in pkg environment (on Mac).

WORKAROUND until fix: navigate to the install folder with Terminal and start the app there with .SPX-GC_macos64command (and NOT by doubleclicking on it)

from spx-gc.

TuomoKu avatar TuomoKu commented on June 13, 2024

This needs work - the issue is stll present. A textfle added to Mac zip file reading:

DO NOT DOUBLECLICK SPX-GC_macos64 -file to run it.
MacOS defaults to "/User/username" -folder when a program is opened by DOUBLECLICKING on it. This WILL CAUSE AN ERROR and default files (config.json, LOG, DATAROOT) will be generated to the home directory and not to the current working directory. Please navigate to the correct folder and start the application with "./SPX-GC_macos64" -command.

from spx-gc.

TuomoKu avatar TuomoKu commented on June 13, 2024

Fixed in 1.0.12 by introducing a getStartUpFolder() -function, which checks the runtime environment and returns the path accordingly.

from spx-gc.

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.