Code Monkey home page Code Monkey logo

Comments (3)

petitlapin avatar petitlapin commented on July 18, 2024

Hi,

thank you for the report.
I'm not sure to understand the question.

  1. Which kind of synchronisation? Do they share a shared folder or "cloud" synchronisation?

For now, the configuration file is stored under
QStandardPaths::writableLocation(QStandardPaths::GenericConfigLocation) + "/gcompris/" + GCOMPRIS_APPLICATION_NAME + ".conf"

The data are stored under:
QCoreApplication::applicationDirPath() + '/' + QString(GCOMPRIS_DATA_FOLDER) + "/rcc/", "value stored in [Admin]/cachePath of the gcompris.conf file", QStandardPaths::writableLocation(QStandardPaths::CacheLocation), "assets:", QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation) + '/' + GCOMPRIS_APPLICATION_NAME

For the configuration file itself, an idea could be to create a first config file that we always read in the cache file that would contain the path to the "shared" configuration file if needed (a redirection).

Or
2) are you talking about updating the configuration file [Admin]/cachePath and [Admin]/userDataPath with values that are on the network?

Johnny

from gcompris-qt.

qoheniac avatar qoheniac commented on July 18, 2024

Thank you for your reply! I only tried to move the configuration file to a location that is synced with a cloud storage (in my case Nextcloud) and leave a symbolic link at the original location. The problem with this is that cachePath and userDataPath contain absolute paths, so something like /home/user1/... while I would need /home/user2/... on the other device. So I tried values like ~/... or $HOME/... which did not work.

For the configuration file itself, an idea could be to create a first config file that we always read in the cache file that would contain the path to the "shared" configuration file if needed (a redirection).

So you mean a second optional configuration file that would overwrite values from the first one, so I could put all the options I like to sync in there? That would be nice as I actually do not even want to sync those path settings causing the problems, but they just happen to also be in that one configuration file and thus get synced too.

EDIT: I decided to use chezmoi and it works so well that I think there is no reason to do this in any other way. I think this issue can be closed.

from gcompris-qt.

petitlapin avatar petitlapin commented on July 18, 2024

Great, thanks for the discovery :)

from gcompris-qt.

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.