Cannot associate svg files with Inkscape 0.91 (Windows 7)

This is NOT a support forum. You are welcome to discuss software issues here, but all issues should be reported on Launchpad if you want them fixed.
QPhysics
Posts: 2
Joined: Mon Feb 02, 2015 10:11 am

Cannot associate svg files with Inkscape 0.91 (Windows 7)

Postby QPhysics » Mon Feb 02, 2015 10:19 am

I installed the 64-bit Windows (msi) version of Inkscape 0.91. It starts and works fine, but I can't get it to associate to svg files as the default option. The installed didn't do the association, and if I go through the, "Open" dialogue, Inkscape isn't in the list of "Other programs" and doesn't even allow me to select it if I navigate to the directory.

User avatar
ragstian
Posts: 1169
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Cannot associate svg files with Inkscape 0.91 (Windows 7

Postby ragstian » Mon Feb 02, 2015 1:19 pm

Hi.

Maybe this will help you? fix-unable-change-default-program-extension-windows-7

RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

QPhysics
Posts: 2
Joined: Mon Feb 02, 2015 10:11 am

Re: Cannot associate svg files with Inkscape 0.91 (Windows 7

Postby QPhysics » Mon Feb 02, 2015 1:32 pm

No, it doesn't help a bit.
I guess you didn't read that I TRIED CHANGING THE DEFAULT "OPEN" PROGRAM?
I know a thing or two about computers, okay?

ragstian wrote:Hi.

Maybe this will help you? fix-unable-change-default-program-extension-windows-7

RGDS
Ragnar

User avatar
ragstian
Posts: 1169
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Cannot associate svg files with Inkscape 0.91 (Windows 7

Postby ragstian » Mon Feb 02, 2015 2:10 pm

Hi.

Check in registry that the file path for Inkscape is correct.
Registry Key;

HKEY_CLASSES_ROOT/Applications/inkscape.exe/shell/open/command

Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

tylerdurden
Posts: 2044
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Cannot associate svg files with Inkscape 0.91 (Windows 7

Postby tylerdurden » Mon Feb 02, 2015 2:16 pm

QPhysics wrote:I know a thing or two about computers, okay?


...Said the guy who can't launch Inkscape from the shell.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

User avatar
brynn
Posts: 9873
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Cannot associate svg files with Inkscape 0.91 (Windows 7

Postby brynn » Mon Feb 02, 2015 10:43 pm

I'm having the same trouble! Except I installed the 7z version.

I'll give my steps, just to be clear.

1 - right click on any SVG file
2 - choose Open With
3 - click Browse button
4 - click on inkscape.exe
5 - normally, here is where Inkscape would show up in the Open With dialog, but it doesn't
6 - if I click OK anyway, it applies whatever program was highlighted

I think I'll report this.

Lazur
Posts: 4519
Joined: Tue Jun 14, 2016 10:38 am

Re: Cannot associate svg files with Inkscape 0.91 (Windows 7

Postby Lazur » Mon Feb 02, 2015 11:24 pm

^--- the 7z version is technically a portable, works without installing and maybe this causes the problem.

tylerdurden
Posts: 2044
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Cannot associate svg files with Inkscape 0.91 (Windows 7

Postby tylerdurden » Tue Feb 03, 2015 12:02 am

Also, if you have multiple versions installed, Ragnar's reg mod may be required.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

User avatar
brynn
Posts: 9873
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Cannot associate svg files with Inkscape 0.91 (Windows 7

Postby brynn » Tue Feb 03, 2015 1:59 am

Well, when I say "installed" I realize it's technically not being installed. (Not only do I not understand much about the difference, between installing, and extracting a zip file, I have no idea how one could accidentally install a zip file.)

What is Ragnar's reg mod?

I did report: https://bugs.launchpad.net/inkscape/+bug/1417146

tylerdurden
Posts: 2044
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Cannot associate svg files with Inkscape 0.91 (Windows 7

Postby tylerdurden » Tue Feb 03, 2015 2:17 am

Registry reference that can be edited:
Check in registry that the file path for Inkscape is correct.
Registry Key;

HKEY_CLASSES_ROOT/Applications/inkscape.exe/shell/open/command
viewtopic.php?f=29&t=18317&sid=ad67ec08c78760802225e25ed613b78f#p68538

Editing the registry improperly can brick your computer, so unless you know what to do and make a backup, file this info for future reference.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

User avatar
brynn
Posts: 9873
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Cannot associate svg files with Inkscape 0.91 (Windows 7

Postby brynn » Tue Feb 03, 2015 2:22 am

Oh ok. Thanks tylerdurden.

I don't think I want to mess with the registry. Maybe I'll look at it, if I can remember how to find it. But it's too easy to make a big mess, at least for me it is, when editing the registry. If I can find it, I'll just look at it, and let you know.

Edit
Ok, I found the Registry Editor. But what do I look for when I find that place. I found it, but I don't understand what the values mean.

Type = REG_SZ
Data = "C:\Program Files (x86)\Inkscape\inkscape.exe" "%1"

Program Files (x86) is where a couple of my old 32 bit versions of Inkscape are installed. My new 0.91, being 64-bit, is in Program Files, not Program Files (x86). However, at the moment, IE is associated with SVG files, because of my failed attempt to associate Inkscape with SVG. None of that helps me understand those values though.

User avatar
ragstian
Posts: 1169
Joined: Thu Oct 11, 2012 2:44 am
Location: Stavanger-Norway

Re: Cannot associate svg files with Inkscape 0.91 (Windows 7

Postby ragstian » Tue Feb 03, 2015 2:41 am

Hi

Don't be intimidated by the registry - it's just a file Windows use to collect information about you system and it's configuration.
You can make a backup of the registry by going to File - Export before you do any edits.

Change the;
"C:\Program Files (x86)\Inkscape\inkscape.exe" "%1"

to "

C:\Program Files\Inkscape\inkscape.exe" "%1"

You will have to reboot your machine for windows to recognize the changes in the registry.

brynn wrote: I found it, but I don't understand what the values mean.

The "C:\Program Files (x86)\Inkscape\inkscape.exe" is just the path to the inkscape program - just as you would type it if it was started from the command line.
The "%1" part is the parameters being passed to the program - this is the name of the file you click on like "MyFavouriteDrawing.svg"

When you click on the file MyFavouriteDrawing.svg the computer reads the filename,
figures out that Inkscape is associated with the svg file extension,
and issues the command "C:\Program Files\Inkscape\inkscape.exe MyFavouriteDrawing.svg" just as you would have typed it manually.

Good Luck
RGDS
Ragnar
Good Luck!
( ͡° ͜ʖ ͡°)
RGDS
Ragnar

User avatar
brynn
Posts: 9873
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: Cannot associate svg files with Inkscape 0.91 (Windows 7

Postby brynn » Tue Feb 03, 2015 8:14 am

Ok Folks, straight from the devs (see the bug link above for details).

This is because of a bug in Windows, that if the association already goes to a program in Program Files (x86), you can't reset it to a program in Program Files. (I assume vice-versa, as well, with emphasis on "assume".) Here's the solution:

- Open "regedit.exe"
- Browse to "HKEY_CLASSES_ROOT\Applications\inkscape.exe"
- Delete this key ("inkscape.exe")

And now you will be able to make the association, as usual. (When you make the association, I guess it re-writes the key.)

I don't know a lot about the registry, but this sounds very similar to what Ragnar suggested. I guess they both do the same thing, ultimately. Anyway, I managed to complete the process within a minute's time, and it doesn't even require a restart!

MClark01
Posts: 1
Joined: Thu Jun 21, 2018 1:38 am

Re: Cannot associate svg files with Inkscape 0.91 (Windows 7)

Postby MClark01 » Thu Jun 21, 2018 2:50 am

This solution is still relevant and helpful in 2018. I'd just add that this will happen to you if switch between any two versions of Inkscape that uses different paths:

• Portable version to any installer version, which is what happened to me
• Any installed version to the PA version, assuming you choose a non-standard path
• 32-bit version to 64-bit version (Program Files (x86) to Program Files)
• 64-bit version to 32-bit version (Program Files to Program Files (x86))

Moini
Posts: 2650
Joined: Mon Oct 05, 2015 10:44 am

Re: Cannot associate svg files with Inkscape 0.91 (Windows 7)

Postby Moini » Thu Jun 21, 2018 5:56 am

Thanks for the info, MClark01!
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)


Return to “Discuss Software Issues”

Who is online

Users browsing this forum: No registered users and 1 guest