Commit f43abe43 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Prioritize the resource save locations.

parent ed79a58f
......@@ -161,18 +161,19 @@ struct KoResourceServerProvider::Private
KoResourceServerProvider::KoResourceServerProvider() : d(new Private)
{
KGlobal::mainComponent().dirs()->addResourceType("ko_patterns", "data", "krita/patterns/");
KGlobal::mainComponent().dirs()->addResourceType("ko_patterns", "data", "krita/patterns/", true);
KGlobal::mainComponent().dirs()->addResourceDir("ko_patterns", "/usr/share/create/patterns/gimp");
KGlobal::mainComponent().dirs()->addResourceDir("ko_patterns", QDir::homePath() + QString("/.create/patterns/gimp"));
KGlobal::mainComponent().dirs()->addResourceType("ko_gradients", "data", "krita/gradients/");
KGlobal::mainComponent().dirs()->addResourceType("ko_gradients", "data", "karbon/gradients/");
KGlobal::mainComponent().dirs()->addResourceType("ko_gradients", "data", "krita/gradients/", true);
KGlobal::mainComponent().dirs()->addResourceDir("ko_gradients", "/usr/share/create/gradients/gimp");
KGlobal::mainComponent().dirs()->addResourceDir("ko_gradients", QDir::homePath() + QString("/.create/gradients/gimp"));
KGlobal::mainComponent().dirs()->addResourceType("ko_palettes", "data", "calligra/palettes/");
KGlobal::mainComponent().dirs()->addResourceType("ko_palettes", "data", "krita/palettes/");
KGlobal::mainComponent().dirs()->addResourceType("ko_palettes", "data", "karbon/palettes/");
KGlobal::mainComponent().dirs()->addResourceType("ko_palettes", "data", "krita/palettes/", true);
KGlobal::mainComponent().dirs()->addResourceDir("ko_palettes", "/usr/share/create/swatches");
KGlobal::mainComponent().dirs()->addResourceDir("ko_palettes", QDir::homePath() + QString("/.create/swatches"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment