Personal default template not used

Bug #503712 reported by Pierre-Antoine Champin
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Low
Slagvi

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 default.fr.svg, 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/default.fr.svg existed, this one overrode my personal default.svg.

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

Revision history for this message
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)
Changed in inkscape:
importance: Undecided → Low
Revision history for this message
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 default.de.svg 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?

Cheers

Andreas

Revision history for this message
zapyon (zapyon) wrote :

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

Revision history for this message
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.

Cheers,

Andreas

Revision history for this message
jazzynico (jazzynico) wrote :

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

No, it exists on all operating systems.

Revision history for this message
su_v (suv-lp) wrote :
tags: added: easy-fix
Revision history for this message
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)
Changed in inkscape:
status: Confirmed → In Progress
Revision history for this message
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
Revision history for this message
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)

Revision history for this message
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)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.