Giter VIP home page Giter VIP logo

Comments (5)

Lachee avatar Lachee commented on May 10, 2024 1

hmm, working directory is kinda the expected behavior. Maybe it should be changed to find the directory master plan is in and put itself there. Additionally, probably rename it to masterplan-settings.json to avoid accidental conflicts?

from masterplan.

Lachee avatar Lachee commented on May 10, 2024

Shouldn't settings be relative to the masterplan executable?

from masterplan.

kforney avatar kforney commented on May 10, 2024

That would be ideal, yes. Since you said that, though, I did a bit of further testing.

If run through itch.io's launcher, or directly from within the directory where the executable is located, it creates the settings.json file in the masterplan directory. However, if run from anywhere else, it creates the settings.json file in the current working directory. If run through a launcher in the menu of a desktop environment, the current working directory happens to be the home directory, so MasterPlan's settings.json file gets created there.

That's how I initially noticed this behavior: I didn't want to launch MasterPlan through itch, so I made a shortcut to it in my menu, and then noticed that settings.json wound up in my home directory, which was unexpected.

from masterplan.

SolarLune avatar SolarLune commented on May 10, 2024

Whoops, this should always be MasterPlan's main directory. I'll change things around~

from masterplan.

theoratkin avatar theoratkin commented on May 10, 2024

Pull request #40 makes use of XDG Base Directory Specification, so the config would go to ~/.config/MasterPlan/settings.json, like @kforney originally suggested.

from masterplan.

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.