Changing default template Ubuntu

Post questions on how to use or achieve an effect in Inkscape.
Yepi
Posts: 8
Joined: Wed Jun 15, 2011 5:30 am

Changing default template Ubuntu

Postby Yepi » Sat Jun 18, 2011 7:39 am

Hi, I have a slight problem with changing templates, basically there are no template files

when I go to my home folder, show hidden files, there is no .inkscape which I think there

should be but there is an inkscape directory with all the relevant folders in .config folder

however all the inkscape folders are empty! Inkscape loads and works perfectly fine which

is a bit strange but I want to change the default template and there is nothing in the template

folder.

Anyone know how inkscape is running and how I could sort this out?

Thanks

ivan louette
Posts: 215
Joined: Thu Aug 21, 2008 4:08 am
Location: Belgium

Re: Changing default template Ubuntu

Postby ivan louette » Sat Jun 18, 2011 8:02 am

It's in usr/share/inkscape/templates. You have there a default.svg and if you use any non english language you must change your language template instead.

ivan

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Changing default template Ubuntu

Postby prkos » Sat Jun 18, 2011 8:45 am

The folder you found under .config folder is the one where should keep your customizations. It doesn't matter it's empty, Inkscape installation files are elsewhere, but what you put inside .config will override everything else.
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

Yepi
Posts: 8
Joined: Wed Jun 15, 2011 5:30 am

Re: Changing default template Ubuntu

Postby Yepi » Sat Jun 18, 2011 8:53 am

Hi, thanks for the speedy responses, I found the default.eu.svg template but now it wont let me edit

I have to be root to change file permissions and regarding overriding I made a file with my

preferences, page size etc and then name it default.eu.svg and put it in .config inkscape template

folder and opened inkscape with no luck.

Il change it as root.

Thanks for the help guys

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Changing default template Ubuntu

Postby prkos » Sat Jun 18, 2011 9:06 am

You can open the default.svg and save it in the correct folder under .config (~/.config/inkscape/templates/), you don't need to be root and Inkscape will use that one as the default. Not all features can be saved though, but size should. You need to restart Inkscape so it picks up the newly added file. I just tried it and it works.
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: Changing default template Ubuntu

Postby ~suv » Sat Jun 18, 2011 6:05 pm

prkos wrote:You can open the default.svg and save it in the correct folder under .config (~/.config/inkscape/templates/), you don't need to be root and Inkscape will use that one as the default.

There is one known use case that fails:
    A user 'default.svg' is ignored if Inkscape is used with a custom locale for which a localised template exists in the shared templates folder. The user template must use the same localized name (e.g. '~/.config/inkscape/templates/default.fr.svg') to override the default.
    (Bug #503712 in Inkscape: “Personal default template not used”)
Recommended reading: Using templates in Inkscape (Libre Graphics World)

Yepi
Posts: 8
Joined: Wed Jun 15, 2011 5:30 am

Re: Changing default template Ubuntu

Postby Yepi » Sun Jun 19, 2011 12:04 am

Hi, thanks for the help guys I used the command 'gksudo nautilus' and then edited the default file, no need to root login/out and solved the issue.

User avatar
shawnhcorey
Posts: 149
Joined: Mon Jan 07, 2008 12:17 pm

Re: Changing default template Ubuntu

Postby shawnhcorey » Sun Jun 19, 2011 12:52 am

prkos wrote:You can open the default.svg and save it in the correct folder under .config (~/.config/inkscape/templates/), you don't need to be root and Inkscape will use that one as the default. Not all features can be saved though, but size should. You need to restart Inkscape so it picks up the newly added file. I just tried it and it works.


Actually, you can start Inkscape, change the documents properties and the meta-properties and save it as:

Code: Select all

~/.config/inkscape/templates/default.svg


When you restart Inkscape, it will start with your new default. This let you use Inkscape as a WYSIWYG editor for it. :)

Also, you can store other SVG files here and they'll be listed under File -> New -> ... the next time you start Inkscape.

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Changing default template Ubuntu

Postby prkos » Sun Jun 19, 2011 4:43 am

Using sudo is the usual way to use root access, I don't think you ever have to actually log in as root.
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

User avatar
shawnhcorey
Posts: 149
Joined: Mon Jan 07, 2008 12:17 pm

Re: Changing default template Ubuntu

Postby shawnhcorey » Sun Jun 19, 2011 6:05 am

prkos wrote:Using sudo is the usual way to use root access, I don't think you ever have to actually log in as root.


It depends on the OS. Ubuntu, et al., uses sudo but I think Fedora uses root (via su).

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: Changing default template Ubuntu

Postby prkos » Sun Jun 19, 2011 7:30 am

You can always use sudo, even on fedora (I'm on fedora), but you you can only use su on platforms that have an actual root user (like fedora and unlike ubuntu).

With su you can log in as root user through a terminal, you don't have to actually log out/in of the session.
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

User avatar
BobSongs
Posts: 324
Joined: Fri Sep 14, 2007 2:18 pm
Location: Montreal, Canada

Re: Changing default template Ubuntu

Postby BobSongs » Sun Jun 19, 2011 9:56 am

Here's a reference on Using templates in Inkscape from Libre Graphics World. I think it will cover what you're looking for.

Let us know if this isn't helpful.

Yepi
Posts: 8
Joined: Wed Jun 15, 2011 5:30 am

Re: Changing default template Ubuntu

Postby Yepi » Tue Jun 28, 2011 3:12 am

Hey, thanks, it is certainly useful.


Return to “Help with using Inkscape”