Personal default template not used

Bug #503712 reported by Pierre-Antoine Champin on 2010-01-06
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

When I created a file ~/.config/inkscape/templates/default.svg, it was not used as the default template when I created a new document.

I has to rename it, and then it worked (NB: my system has a french locale).

My understanding is that, if inkspace finds a *localized* default template, it overrides a non-localisezed one. Since /usr/share/template/ existed, this one overrode my personal default.svg.

I think a *personal* (i.e. in ~/.confifg) default.svg should override any *system* default*.svg.

su_v (suv-lp) wrote :

reproduced with Inkscape 0.47+devel r8941 on OS X 10.5.8

If I change the UI language via 'Preferences > Interface > Language', Inkscape ignores the custom default template '~/.config/inkscape/templates/default.svg' and uses the localized system default template. To still load a custom default template from '~/.config/inkscape/templates' the file needs to be named corresponding to the locale used for the UI (default.{locale}.svg).

Changed in inkscape:
status: New → Confirmed
tags: added: preferences translation ui
jazzynico (jazzynico) on 2010-06-16
Changed in inkscape:
importance: Undecided → Low
zapyon (zapyon) wrote :

I have exactly the same Problem with the Inkscape 0.47.0-2+b1 Debian package (squeeze).
/home/<username>/.config/inkscape/templates/default.svg is not used.

BUT: if I remove (i.e. rename) default.svg and in the system directory /usr/share/inkscape/templates/ my local default IS used. So you could call this a workaround. ;-)

By the by: is the default.<lang>.svg Debian-specific?



zapyon (zapyon) wrote :

PS: renaming the user template to (while using German environment on an XFCE desktop) didn't help.

zapyon (zapyon) wrote :

PPS: Checked again with a new user account using English language in XFCE:
When using English language the user template is loaded even if /usr/share/inkscape/templates/default.svg exists.
So I get the impression the problem occurs only with langauges other than English, as the original reporter of this bug is using Frensh localization and I am using German in my default profile.



jazzynico (jazzynico) wrote :

zapyon> By the by: is the default.<lang>.svg Debian-specific?

No, it exists on all operating systems.

su_v (suv-lp) wrote :
tags: added: easy-fix
Slagvi (slagvi) wrote :

Changed loading priority. Now it looks something like this:
1. ~/.config/inkscape/templates localized default
2. ~/.config/inkscape/templates global default
3. /usr/share/inkscape/templates localized default
4. /usr/share/inkscape/templates global default

su_v (suv-lp) on 2013-04-15
Changed in inkscape:
status: Confirmed → In Progress
jazzynico (jazzynico) wrote :

Tested successfully on Windows XP, Inkscape trunk revision 12276.
Thanks for the patch!

Changed in inkscape:
assignee: nobody → Slagvi (slagvi)
milestone: none → 0.49
su_v (suv-lp) wrote :

Quick test with Inkscape 0.48+devel r12276 + patch on OS X 10.7.5 (GTK+/Quartz 2.24.17, glib 2.34.3) works as expected.

(the original patch didn't apply cleanly, attaching new diff against local trunk branch)

jazzynico (jazzynico) wrote :

Patch also tested on Debian Testing with no issue, and committed trunk revision 12277.
Congrats for your first patch, Slagvi!

Changed in inkscape:
status: In Progress → Fix Committed
Bryce Harrington (bryce) on 2015-02-21
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers