Bug 362064 - Saving as template creates only .desktop
Summary: Saving as template creates only .desktop
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: git master (please specify the git hash!)
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2016-04-22 07:56 UTC by basse
Modified: 2016-06-09 07:04 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
[ ^ screenshot of the bug ] (277.22 KB, image/png)
2016-05-15 21:17 UTC, David REVOY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description basse 2016-04-22 07:56:53 UTC
when saving image as template Krita creates .desktop file in ~/.local/share/krita/templates/[groupname]/  but forgets to save the actual .kra file into .source subdirectory. 

so you have to manually save it there or otherwise Krita will complain missing .kra when using the template.

.b

Reproducible: Always

Steps to Reproduce:
1. create image
2. save as template
3. create new image using this new template


Actual Results:  
error dialog pops up complaining about missing .kra file for the template


Expected Results:  
no errors, just create new image with your template setup

here's the desktop entry that was created... but no kra anywhere.

[Desktop Entry]
Icon=.icon/A4Paperi.png
Name=A4 Paperi
Type=Link
URL[$e]=.source/A4Paperi.kra
X-KDE-Hidden=false
Comment 1 eliotJ 2016-05-14 20:34:19 UTC
Hi

Does it's also exist in Krita v2.9.11 or does it's a regression in v3.0 ?
Comment 2 David REVOY 2016-05-15 21:17:17 UTC
Created attachment 98997 [details]
[ ^ screenshot of the bug ]

I confirm, impossible here to create a new template in 3.0 git-master freshly compiled. ( picture in attachement ). Also, the 'Use template at startup' option is broken...
Comment 3 eliotJ 2016-05-15 22:30:40 UTC
Sorry for asking again (I can't try under Linux myself):

Does it's also exists in Krita v2.9.11 ?
Comment 4 David REVOY 2016-05-16 12:30:53 UTC
>> Does it's also exists in Krita v2.9.11 ?
Tested here, all the template related feature works fine in 2.9.11.
Comment 5 eliotJ 2016-05-18 15:04:25 UTC
Thanks David :)
Comment 6 Halla Rempt 2016-06-09 07:04:46 UTC
Git commit c24eecb6ba7e53e88ad272cf25cc1983784eb8d8 by Boudewijn Rempt.
Committed on 09/06/2016 at 07:03.
Pushed by rempt into branch 'krita/3.0'.

Yet another !@#$% QUrl porting bug.

M  +40   -46   libs/ui/KisTemplateCreateDia.cpp

http://commits.kde.org/krita/c24eecb6ba7e53e88ad272cf25cc1983784eb8d8