Closed ueffel closed 3 years ago
If I may and since environment vars are not always reliable, something along those lines would be safer and slightly more pedantic (untested so there might be a typo):
ditto.py
:
import keypirinha_wintypes as kpwt
import os.path
DEFAULT_DATABASE_FILE = os.path.join(kpwt.get_known_folder_path(kpwt.FOLDERID.RoamingAppData),
"Ditto", "Ditto.db")
ditto.ini
:
[main]
#database_file = ${var:KNOWNFOLDER_ROAMINGAPPDATA}
Thank you for your interest in this project. I have stopped using Keypirinha and will be archiving this repository.
It would be nice if the ditto package would work out of the box with a default ditto installation without any configuration. My suggestion would be to set the default database path to the default path of the ditto database with the following code changes:
ditto.py:
ditto.ini:
Think about it :)