Bug 361155

Summary: Default templates became invisible after adding custom templates folder
Product: [Applications] krita Reporter: agb
Component: UsabilityAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: griffinvalley, raghu
Priority: NOR    
Version First Reported In: 3.0 Alpha   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description agb 2016-03-29 17:25:02 UTC
Default templates became invisible after adding new template or add custom templates folder into .local/share/krita/krita/templates. My folder with my templates are visible.

Reproducible: Always

Steps to Reproduce:
1. Create any template from current file
2. Put it to named folder in new template dialog
3. Reopen Krita
4. Default templates (comics, dslr, design, etc) are not visible now
Comment 1 agb 2016-03-29 17:32:12 UTC
I run it on Ubuntu 16.04 beta1 from appimage (as executable)
Comment 2 wolthera 2016-03-29 18:04:55 UTC
yeah, confirmed, but not sure if we have a duplicate for this already???
Comment 3 Halla Rempt 2016-03-29 18:14:14 UTC
I'm pretty sure we don't, but your memory is better than mine...
Comment 4 Raghavendra kamath 2016-03-29 18:23:33 UTC
Nataly  on IRC also had this issue, and I too have it , we have  a phabricator task for this too here it is -> https://phabricator.kde.org/T1464.

This is due to krita saving the newly created templates in wrong folder.
Comment 5 Halla Rempt 2016-03-31 00:15:09 UTC
Git commit c24489dd302afa07058f07b977b1b72e7d65786c by Boudewijn Rempt.
Committed on 30/03/2016 at 23:31.
Pushed by rempt into branch 'master'.

This makes krita look in the same place for local and installed
templates. This commit probably needs thorough testing on OSX
and Windows.

CCMAIL:kimageshop@kde.org

M  +4    -4    krita/sketch/main.cpp
M  +1    -1    krita/sketch/models/TemplatesModel.cpp
M  +1    -1    libs/flake/KoMarkerCollection.cpp
M  +1    -1    libs/ui/KisApplication.cpp
M  +3    -3    libs/ui/KisMainWindow.cpp
M  +1    -1    libs/ui/KisPart.cpp
M  +24   -24   libs/ui/KisResourceBundle.cpp
M  +1    -0    libs/ui/KisView.cpp
M  +1    -1    libs/ui/KisViewManager.cpp
M  +2    -2    libs/ui/dialogs/kis_dlg_layer_style.cpp
M  +1    -1    libs/ui/input/config/kis_input_configuration_page.cpp
M  +4    -4    libs/ui/input/kis_input_profile_manager.cpp
M  +1    -1    libs/ui/kis_animation_exporter.cpp
M  +1    -1    libs/ui/kis_node_manager.cpp
M  +5    -5    libs/ui/widgets/kis_custom_image_widget.cc
M  +2    -2    plugins/dockers/compositiondocker/compositiondocker_dock.cpp
M  +3    -3    plugins/dockers/lut/lutdocker_dock.cpp
M  +1    -1    plugins/extensions/bigbrother/bigbrother.cc
M  +2    -2    plugins/paintops/libpaintop/kis_clipboard_brush_widget.cpp
M  +1    -1    plugins/paintops/libpaintop/kis_custom_brush_widget.cpp
M  +1    -1    plugins/tools/tool_transform2/kis_free_transform_strategy.cpp

http://commits.kde.org/krita/c24489dd302afa07058f07b977b1b72e7d65786c
Comment 6 Raghavendra kamath 2016-04-02 12:14:51 UTC
the new template are now saved in .local/share/krita instead of .local/share/krita/templates thus the newly added template is not loaded int he new document dialog box, and it we manually move the newly added template into 'templates' folder, all other templates go away. so there is still some problem in this.
Comment 7 Halla Rempt 2016-04-02 14:04:18 UTC
Git commit ca6ce2f233a98ecdad12ee613b046bd02a3ebaf4 by Boudewijn Rempt.
Committed on 02/04/2016 at 14:03.
Pushed by rempt into branch 'master'.

Add the suffix to the save location where needed
Related: bug 360743

M  +4    -1    libs/widgetutils/KoResourcePaths.cpp

http://commits.kde.org/krita/ca6ce2f233a98ecdad12ee613b046bd02a3ebaf4
Comment 8 Halla Rempt 2016-04-05 10:50:16 UTC
Git commit 324badefbc79844d35be0d74f999d7c6582ad677 by Boudewijn Rempt.
Committed on 05/04/2016 at 10:49.
Pushed by rempt into branch 'rempt-osx-port'.

Add the suffix to the save location where needed
Related: bug 360743

M  +4    -1    libs/widgetutils/KoResourcePaths.cpp

http://commits.kde.org/krita/324badefbc79844d35be0d74f999d7c6582ad677