Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make application directory read-only #61

Open
NikolayXHD opened this issue Aug 1, 2020 · 2 comments
Open

Make application directory read-only #61

NikolayXHD opened this issue Aug 1, 2020 · 2 comments

Comments

@NikolayXHD
Copy link
Owner

Anything write-able should be separated into platform-specific ApplicationData and UserData directories.

This is a prerequisite to package the application in any standard way.

@NikolayXHD NikolayXHD changed the title Keep application directory read-only Make application directory read-only Aug 1, 2020
@NikolayXHD
Copy link
Owner Author

user data

  • logs/
  • charts/
  • history/
  • save/
  • etc/Mtgdb.Gui.xml

application data

  • data/AllPrices.json
  • data/AllPrintings.json
  • data/index/
  • update/

@TeamLinux01
Copy link

These would be my suggested places for data. Maybe the saving decks could default to the Documents folders of the User for each OS.

Under Linux: https://askubuntu.com/questions/14535/whats-the-local-folder-for-in-my-home-directory
User data

  • /home/username/.local/share/Mtgdb.Gui
    • logs/
    • charts/
    • history/
    • save/
    • etc/Mtgdb.Gui.xml

Application data

  • /home/username/.cache/Mtgdb.Gui
    • data/AllPrices.json
    • data/AllPrintings.json
    • data/index/
    • update/

Under Windows: https://www.howtogeek.com/318177/what-is-the-appdata-folder-in-windows/
User data

  • C:\Users\username\AppData\Roaming\Mtgdb.Gui
    • logs\
    • charts\
    • history\
    • save\
    • etc\Mtgdb.Gui.xml

Application data

  • C:\Users\username\AppData\LocalLow\Mtgdb.Gui
    • data\AllPrices.json
    • data\AllPrintings.json
    • data\index\
    • update\

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants