Inkscape opens as small window (WinXP)

Asked by wilfriedh

On each new start of Inkscape (Windows XP), the program opens as a small window (version 0.45: 648x683px, version 0.46r21345: 568x489px), i.e. it doesn't remember the size which it had when it was closed the last time before.
I tried with editing preferences.xml, setting
       inkscape:window-width="1250" (originally "640")
       inkscape:window-height="980" (originally "480")
but this didn't help.
I'd like Inkscape to start in the window size it had when last closed.

Question information

Language:
English Edit question
Status:
Solved
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Solved by:
su_v
Solved:
Last query:
Last reply:
Revision history for this message
wilfriedh (w-hennings) said :
#1

More info:
If I open a drawing, the program window size is restored to last used. However its posiiton on the screen is a little bit (about 30px) shifted down, so that the status bar is hidden, and it is a little bit larger (about 5 px) than the last time used.

Revision history for this message
Best su_v (suv-lp) said :
#2

@Initial window size:

there's no initial window size rather the window geometry info stored in your default template (aka New document 1). See the DVD_Cover templates as examples for templates with a specific window size.

<http://wiki.inkscape.org/wiki/index.php/FAQ#Can_I_use_different_settings_for_the_new_documents_created_by_Inkscape.3F>:

  Can I use different settings for the new documents created by Inkscape?

Yes. When you do File > New (Ctrl+N) or start a new Inkscape session, Inkscape loads the default template document which stores page format, grid and guide parameters, snapping and export settings, etc. It can even contain any pre-created objects. You can save any document as the default template by writing it to ~/.inkscape/templates/default.svg on Linux and [inkscape dir]/share/templates/default.svg on Windows. If you save it under any other name than default.svg in the same folder, it will appear in the File > New submenu but will not load automatically unless chosen.

@shifted window position:

follow the discussion in bug #168422 <https://bugs.launchpad.net/inkscape/+bug/168422>: a fix is released, might try a another snapshot (revision 21419 or newer).

Revision history for this message
wilfriedh (w-hennings) said :
#3

Thank you for your advice!
@Initial window size:
solved by saving default.svg.

@shifted window position:
Unfortunately r21345-090514 is the latest version available as compiled Win32 snapshot. I'll wait until a newer release is made available.

Revision history for this message
wilfriedh (w-hennings) said :
#4

Thanks ~suv, that solved my question.

Revision history for this message
Bruce Harvey (bruce-bearsoft) said :
#5

>You can save any document as the default template by writing it to ~/.inkscape/templates/default.svg on Linux and [inkscape dir]/share/templates/default.svg on Windows.

I have Inkscape running under X11 on a Snowleopard Imac and can't find any such name.

Inkscape is shown as an application in the applications folder.

BUT if I Save as, select the folder Templates and the name as default.svg; when I next open Inkscape, it uses it as its opening template even though Finder still insists that the file does not exist.

Bruce

Revision history for this message
su_v (suv-lp) said :
#6

@Bruce Harvey
Directories and files with a dot (".") as first character in the file name are hidden from most GUI applications both on Linux and on Mac OS X (which has an underlying unix system below the Aqua UI).

To access the user Inkscape profile folder with the Finder:
1) open a new finder window
2) use menu 'Go > Go to Folder…'
3) in the dialog box, enter "~/.config/inkscape" (without quotes) and press "Go" [1]
4) now you can browse the folder with Inkscape's user preferences file (preferences.xml) and custom resources like users templates, filters, extensions, etc.
5) if you often need access to those files via Finder, drag the profile folder into the left side of your Finder window to have it accessible as shortcut under 'Places'

To open dot files without external tools is more difficult, if needed I recommend using a plain text editor like 'Smultron' or 'TextWrangler' which allow to show 'invisible' or 'hidden' files and folders in their 'File > Open…' and 'File > Save…' dialogs.

[1] the tilde sign "~" is another common symbol or shortcut known by all unix/linux-based systems and is a shortcut to your Home folder ("/Users/[your-login-name]", or 'Shift+Cmd+H' in the Finder).

hth, ~suv

Revision history for this message
Bruce Harvey (bruce-bearsoft) said :
#7

Thanks,

While being a bit of a geek on other platforms, I am very new to Apple. This is the kind of info I love.

But did you read how I was able to save default.svg from the Inkscape save as dialogue box without any of this knowledge.

Bruce

On 1 Jun 2010, at 09:33, <email address hidden> wrote:

> Question #72415 on Inkscape changed:
> https://answers.launchpad.net/inkscape/+question/72415
>
> ~suv posted a new comment:
> @Bruce Harvey
> Directories and files with a dot (".") as first character in the file name are hidden from most GUI applications both on Linux and on Mac OS X (which has an underlying unix system below the Aqua UI).
>
> To access the user Inkscape profile folder with the Finder:
> 1) open a new finder window
> 2) use menu 'Go > Go to Folder…'
> 3) in the dialog box, enter "~/.config/inkscape" (without quotes) and press "Go" [1]
> 4) now you can browse the folder with Inkscape's user preferences file (preferences.xml) and custom resources like users templates, filters, extensions, etc.
> 5) if you often need access to those files via Finder, drag the profile folder into the left side of your Finder window to have it accessible as shortcut under 'Places'
>
> To open dot files without external tools is more difficult, if needed I
> recommend using a plain text editor like 'Smultron' or 'TextWrangler'
> which allow to show 'invisible' or 'hidden' files and folders in their
> 'File > Open…' and 'File > Save…' dialogs.
>
> [1] the tilde sign "~" is another common symbol or shortcut known by all
> unix/linux-based systems and is a shortcut to your Home folder ("/Users
> /[your-login-name]", or 'Shift+Cmd+H' in the Finder).
>
>
> hth, ~suv
>
> --
> You received this question notification because you are a direct
> subscriber of the question.
>

Regards Bruce
Bruce Harvey
<email address hidden>
The Alternative Physics Site
http://bearsoft.co.uk/

Revision history for this message
su_v (suv-lp) said :
#8

On 2/6/10 07:06, Bruce Harvey wrote:
> But did you read how I was able to save default.svg from the Inkscape
> save as dialogue box without any of this knowledge.

Great!

BTW - you know that you can configure the file chooser dialog used by
Inkscape to show all hidden (dot) files and folders? This allows you to
edit your custom templates without the need to resort to the Finder:

in the file chooser, just right-click in the list of files and check

[x] Show Hidden Files

Now you can access all files in ~/.config/inkscape from within Inkscape,
even in the 'File > Open…' dialog.

hth, ~suv

Revision history for this message
rj.amdphreak@gmail.com (rj-amdphreak) said :
#9

This isn't fixed at all. Every time I open Inkscape, since many years ago, it still opens up in the same small window, with all my dialog boxes reset to the default, which is useless. Now if they would compile in better defaults, that would help, but that's just the icing on the cake. So, where is the cake?

If you want to contact me, ~suv , the guy who submitted the so-called 'fix', please feel free. I've wondered why this hasn't ever worked.

Revision history for this message
rj.amdphreak@gmail.com (rj-amdphreak) said :
#10

tl;dr-- I was wrong: it isn't hard coded. But the default.svg currently is ridiculous. It should be saved when exiting every Inkscape session.
--
"Yes. When you do File > New (Ctrl+N) or start a new Inkscape session, Inkscape loads the default template document which stores page format, grid and guide parameters, snapping and export settings, etc. It can even contain any pre-created objects. You can save any document as the default template by writing it to ~/.inkscape/templates/default.svg on Linux and [inkscape dir]/share/templates/default.svg on Windows. If you save it under any other name than default.svg in the same folder, it will appear in the File > New submenu but will not load automatically unless chosen."

Ah, I see the default is not hard-coded into the application. I was wrong about that. But now the question remains as to why Inkscape doesn't have a sensible default for Windows.

Also, the current behavior is less than good. It needs to be better. Any GUI critic would see this is unacceptable behavior for an application. The proper behavior is that Inkscape should automatically save the current interface to the default.svg when closing the project in Inkscape. This is very simple code that could improve the functionality of Windows Inkscape by a billion times.

Revision history for this message
rj.amdphreak@gmail.com (rj-amdphreak) said :
#11

"It should be saved when exiting every Inkscape session."
correction:
It should be overwritten with the current window settings whenever Inkscape exits.