Setting preferences across several machines

Home Forums cherrytree Setting preferences across several machines

This topic contains 4 replies, has 4 voices, and was last updated by  Sisyfos 1 week, 4 days ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #125033

    KBTidwell
    Member

    Where is the preferences file for program settings located in Cherrytree’s directory? I’ve set it up on my desktop, and I want to copy the settings to my laptop so I don’t have to go through it all over again item by item.

    Thanks for reading.

    #125036

    Cosmo
    Member

    The details for the answer depend from your OS. In Linux there is the file config.cfg in ~/.config/cherrytree. Note: ~ is a shortcut for the current user’s home, file / folder names starting with a dot are by default hidden.

    I cannot answer the question for Windows. I assume, that the file name for the configuration is the same, the storage path is possibly somewhere in Application Data.

    Don’t miss to close CT before you do the copy operation.

    #125049

    KBTidwell
    Member

    Thank you very much! I do have a Mint laptop, as well as Win10 so I will examine that tonight.

    #125063

    acry
    Member

    On Windows the config file-path is:
    reduced from:
    cons.CONFIG_DIR in cons.py:

    if sys.platform.startswith("win"):
        IS_WIN_OS = True
        if not os.path.isfile(os.path.join(SHARE_PATH, 'config.cfg')):
            CONFIG_DIR = os.path.join(os.environ['APPDATA'], APP_NAME)
        else:
            CONFIG_DIR = SHARE_PATH

    APPDATA should expand to:
    C:\Users\{username}\AppData\Roaming

    #125065

    Sisyfos
    Member

    Hi;
    Windows may have appended a file name extension, from config.cfg to config.cfg.txt. If this is the case you need to change this back manually, otherwise it won’t work.
    /Sisyfos

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.