Hi all,
Having darktable installed on both my laptop and desktop, forced me to duplicate all of my presets between them.
Copying the "library.db" between them solved the presets issue, but introduced some others (much more complex) issues.
After some reading, I decided to solve the problem my way.

So I wrote a short python script.
Darktable store all presets on the "database" (a sqlite3 DB, usually found at ~/.config/darktable/library.db) inside a table named "presets".
The script reads the "presets" table on the source library.db database and append them to the same table on the destination library.db database.
existing presets stays without change (no duplication)
Which mean that every time you add a preset to one of your installation, you can run the script again to append this preset to the other installations.

The script need access to both library.db files
So it is advisable to:
- Backup those files
- Copy them to the script directory (as src_library.db and dest_library.db)
- run the script
- copy the "dest_library.db" to the correct place while changing its name back to "library.db"


**
I did not "beautify" the script!
It is just some "quick and dirty" code I wrote in couple of hours for "one time migration"
But since I believe other needs the same functionality, I did put the script on the user's WIKI.

http://darktable.org/redmine/projects/users/wiki/Append_presets_from_one_darktable_installation_to_another
(With a link from the main user's wiki page)

**
It is easy to change the script so it will "backup" presets to a new database or will copy just specific set of presets.
Feel free to use/change it so it will fit your needs in the best way.

any remarks or questions, feel free to email me at [email protected]

Best,
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Darktable-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/darktable-users

Reply via email to