You are here

[Outdated] Inkscape Portable 0.46 Development Test 2

23 posts / 0 new
Last post
Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 4 months ago
Joined: 2007-04-15 21:08
[Outdated] Inkscape Portable 0.46 Development Test 2

Application: Inkscape
Category: Graphics & Pictures
Description: Inkscape is a feature rich and amazingly popular vector graphics editor. If you haven't heard of it, you are just about to wake up :D. With Inkscape you can edit SVG files, and files of other formats, make pretty pictures, and lots more.

Download Inkscape Portable 0.46 Development Test 2 [36.1MB download / 65.1MB installed, 110.8MB with languages]
(MD5: 1394e2fc35e4280a023a328f3019b9b5)

Release Notes:

Development Test 2 (2008-11-08):

  • Fixed some minor issues, as reported in this page.
  • Moved some remaining multi-lingual stuff into the multi-lingual installer. This means that the English only version is about 23MB smaller. With additional languages it's the same.
  • For the moment at least I'm leaving it using USERPROFILE/APPDATA redirection, but I will look more into messing up one/both of them and instead then using HOME... read more about that lower in this page.
  • OK, hopefully it's ready now... Blum

Development Test 1 (2008-11-01): Initial release

  • Quite frankly, I reckon it's ready, pending testing. It handles the GTK, languages, and you can design the kitchen sink for yourself in it Wink
  • I'd like developer-testers to look at how I did the AppData redirecting, see if they can come up with any improvements, opinions, etc.

horusofoz
horusofoz's picture
Offline
Last seen: 1 year 2 months ago
Joined: 2008-04-03 22:45
Thanks for this Chris :)

Thanks for this Chris Smile

PortableApps.com Advocate

horusofoz
horusofoz's picture
Offline
Last seen: 1 year 2 months ago
Joined: 2008-04-03 22:45
Bad News : (

I opened this up and was playing around with some of the brushes as I haven't used Inkscape before and got an error message after using the cube "brush" that shut down the app.

http://www.mediafire.com/download.php?kq3rzg1wttz

Also here is a regshot from the same session. Unfortunately didn't realise until Inkscape was running that Avast was updating itself.

==================================================================

Regshot 1.8.2
Comments:
Datetime:2008/11/1 00:27:06  ,  2008/11/1 00:28:51
Computer:TOWER_7200 , TOWER_7200
Username: , 

----------------------------------
Keys added:2
----------------------------------
HKU\.DEFAULT\Software\Microsoft\Windows NT\CurrentVersion\Network\Location Awareness
HKU\S-1-5-18\Software\Microsoft\Windows NT\CurrentVersion\Network\Location Awareness

----------------------------------
Values added:2
----------------------------------
HKU\S-1-5-21-796845957-789336058-839522115-500\Software\Microsoft\Windows\ShellNoRoam\MUICache\F:\PortableApps\InkscapePortable\InkscapePortable.exe: "Inkscape Portable"
HKU\S-1-5-21-796845957-789336058-839522115-500\Software\Microsoft\Windows\ShellNoRoam\MUICache\F:\PortableApps\InkscapePortable\App\Inkscape\inkscape.exe: "Inkscape"

----------------------------------
Values modified:7
----------------------------------
HKLM\SOFTWARE\Microsoft\Cryptography\RNG\Seed: CD 12 2E 9B D0 79 5D 9B DB FC E7 40 FC 60 81 29 06 00 96 4D 0F 86 C7 F6 3E A1 C7 05 DE 55 F7 2C 57 73 14 89 F5 6A A5 5E 88 BA 25 C7 5B 65 08 0E F8 EA 6A 22 23 36 F9 B5 5C 2C 2C 64 D4 3E 41 E5 CC 8E 6A C0 A4 58 82 6A 82 9E F3 AF B0 7E 5D D6
HKLM\SOFTWARE\Microsoft\Cryptography\RNG\Seed: F4 70 65 B1 94 B3 D8 3F 62 CB AA 17 1F 5E 63 BF B8 73 24 06 52 05 BA 24 93 E7 C1 37 2B 8B 52 AA F9 30 F0 87 66 15 44 60 98 D7 8F 69 82 75 13 CF 00 28 BF B8 24 A1 2B 80 DD 28 C3 24 BF 0E 87 B7 16 82 42 20 CC 74 D1 C8 53 43 1C 6E F0 AD 32 C2
HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData: "C:\Documents and Settings\Administrator\Application Data"
HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData: "C:\WINDOWS\system32\config\systemprofile\Application Data"
HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\SavedLegacySettings: 46 00 00 00 4E 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 20 42 D3 1C 86 2F C9 01 01 00 00 00 C0 A8 01 02 00 00 00 00 00 00 00 00 00 00 00 00
HKU\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\SavedLegacySettings: 46 00 00 00 50 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 20 42 D3 1C 86 2F C9 01 01 00 00 00 C0 A8 01 02 00 00 00 00 00 00 00 00 00 00 00 00
HKU\S-1-5-21-796845957-789336058-839522115-500\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData: "C:\Documents and Settings\Administrator\Application Data"
HKU\S-1-5-21-796845957-789336058-839522115-500\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData: "F:\PortableApps\InkscapePortable\Data\settings\Application Data"
HKU\S-1-5-21-796845957-789336058-839522115-500\SessionInformation\ProgramCount: 0x00000003
HKU\S-1-5-21-796845957-789336058-839522115-500\SessionInformation\ProgramCount: 0x00000001
HKU\S-1-5-18\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData: "C:\Documents and Settings\Administrator\Application Data"
HKU\S-1-5-18\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\AppData: "C:\WINDOWS\system32\config\systemprofile\Application Data"
HKU\S-1-5-18\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\SavedLegacySettings: 46 00 00 00 4E 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 20 42 D3 1C 86 2F C9 01 01 00 00 00 C0 A8 01 02 00 00 00 00 00 00 00 00 00 00 00 00
HKU\S-1-5-18\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections\SavedLegacySettings: 46 00 00 00 50 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 20 42 D3 1C 86 2F C9 01 01 00 00 00 C0 A8 01 02 00 00 00 00 00 00 00 00 00 00 00 00

----------------------------------
Files added:7
----------------------------------
C:\Program Files\Alwil Software\Avast4\Setup\part-vps-8103101.vpu
C:\Program Files\Alwil Software\Avast4\Setup\vpsm-8103101.vpu
C:\WINDOWS\Prefetch\AVAST.SETUP-032170A8.pf
C:\WINDOWS\Prefetch\INKSCAPE.EXE-0D505DAF.pf
C:\WINDOWS\Prefetch\INKSCAPEPORTABLE.EXE-0259D46D.pf
C:\WINDOWS\Prefetch\REGSHOT.EXE-207AA973.pf
C:\WINDOWS\system32\wbem\Logs\wbemcore.log

----------------------------------
Files deleted:4
----------------------------------
C:\Program Files\Alwil Software\Avast4\Setup\part-vps-8103100.vpu
C:\Program Files\Alwil Software\Avast4\Setup\vpsm-8103100.vpu
C:\WINDOWS\Temp\_av_proI.tm~a03620\dld1.tmp
C:\WINDOWS\Temp\_av_proI.tm~a03620\setup.lok

----------------------------------
Files [attributes?] modified:23
----------------------------------
C:\Documents and Settings\Administrator\ntuser.dat.LOG
C:\Documents and Settings\LocalService\Cookies\index.dat
C:\Documents and Settings\LocalService\Local Settings\History\History.IE5\index.dat
C:\Documents and Settings\LocalService\Local Settings\Temporary Internet Files\Content.IE5\index.dat
C:\Program Files\Alwil Software\Avast4\DATA\400.vps
C:\Program Files\Alwil Software\Avast4\DATA\aswar0.dll
C:\Program Files\Alwil Software\Avast4\DATA\clnr0.dll
C:\Program Files\Alwil Software\Avast4\DATA\dllcc0.dat
C:\Program Files\Alwil Software\Avast4\DATA\exts0.dll
C:\Program Files\Alwil Software\Avast4\DATA\log\Notice.log
C:\Program Files\Alwil Software\Avast4\DATA\log\Setup.log
C:\Program Files\Alwil Software\Avast4\Setup\prod-av_pro.vpu
C:\Program Files\Alwil Software\Avast4\Setup\setup.ini
C:\Program Files\Alwil Software\Avast4\Setup\setup.log
C:\Program Files\Alwil Software\Avast4\Setup\summary.txt
C:\WINDOWS\system32\config\default.LOG
C:\WINDOWS\system32\config\software.LOG
C:\WINDOWS\system32\wbem\Repository\FS\INDEX.BTR
C:\WINDOWS\system32\wbem\Repository\FS\INDEX.MAP
C:\WINDOWS\system32\wbem\Repository\FS\MAPPING.VER
C:\WINDOWS\system32\wbem\Repository\FS\MAPPING1.MAP
C:\WINDOWS\system32\wbem\Repository\FS\OBJECTS.DATA
C:\WINDOWS\system32\wbem\Repository\FS\OBJECTS.MAP

----------------------------------
Folders deleted:1
----------------------------------
C:\WINDOWS\Temp\_av_proI.tm~a03620

----------------------------------
Total changes:46
----------------------------------

==========================================================

EDIT: Just ran Inkscape again and fooled about and error didn't repeat. Prbably just an issue with my pc rather than app but will leave info up for your perusal in case it helps at all.

PortableApps.com Advocate

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 10 months ago
Developer
Joined: 2006-12-06 18:07
Looks like a clean regshot

Looks like a clean regshot log

The developer formerly known as ZGitRDun8705

christian.kissing
Offline
Last seen: 12 years 9 months ago
Joined: 2006-11-16 06:45
Your screenshot

looks like an Inkscape/GTK issue rather than a PortableApp one.

I get them when I use the open-dialogue to browse svg-files on the locally installed version. Updating the preview seems to trash Inkscape.

aamiel
aamiel's picture
Offline
Last seen: 3 years 10 months ago
Joined: 2008-11-03 04:53
Lose 20MB

There are localised versions of tutorials and templates in \InkscapePortable\App\Inkscape\share
They take up to 23MB.
I removed them from my installation. It would be good if this was done automatically when the "other languages" option is not selected

Arnaud

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 4 months ago
Joined: 2007-04-15 21:08
Data storage technique

I think John T. Haller reckons that it'd be better if we could do it without moving APPDATA and USERPROFILE.

I finally found where Inkscape works out where to store its settings. Look at http://inkscape.svn.sourceforge.net/viewvc/inkscape/inkscape/tags/RELEAS... lines 1411-1471 - first, it uses system AppData (which requires APPDATA to be set to the proper subdirectory of USERPROFILE blah blah blah - read https://portableapps.com/node/13903 for more info on the problem), but if blank (set APPDATA or USERPROFILE to blank or something that doesn't match) it'll use HOME (I think). It seems to me though that this destroys the point of it, as it destroys the APPDATA and/or USERPROFILE variables, and may be inconsistent on later systems; I really don't know.
SUMMARY: The way I do my Inkscape Portable is best, I think.

(BTW, aamiel, nice spotting, fixed in DT2, but can't compile it yet.)

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

wraithdu
Offline
Last seen: 11 years 5 months ago
Developer
Joined: 2007-06-27 20:22
Interesting. From what you

Interesting. From what you said and a quick look at the source, if you set USERPROFILE (not APPDATA) to blank or some garbage path, then the call to SHGetSpecialFolderLocation should fail, and InkScape would fall back to it's home_dir.

home_dir is derived from the g_get_home_dir() function, which on Windows looks up the env vars HOME, then USERPROFILE. So if you go this route, you should set the HOME var to where you want settings to be saved.

I'm curious if this all works out!

Bart.S
Offline
Last seen: 5 months 1 week ago
Developer
Joined: 2008-07-23 07:56
Launcher Code

Hi Chris,
i looked at the launcher code. Well, I can't say if there is a better way for the AppData redirecting. I'm not so experienced yet.
But you could improve line 284: FindProcDLL::FindProc "${DEFAULTEXE}"
This should be: FindProcDLL::FindProc "$PROGRAMEXECUTABLE"

In the Readme.txt you could add a description for the option DisableSplashScreen.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 4 months ago
Joined: 2007-04-15 21:08
:-)

Nice catches, both of them! They'll go into DT2 when I get to a computer capable of compiling it within the required time frame - i.e. not this one which I'm on now!

Matter of fact, the readme problem was because I copied the INI stuff out of the GIMP launcher (mainly because of the GTK handling stuff) ... and you can't disable the splash screen for GIMP. And I didn't then add it back in in the description.

I like people that test and find nit-picking little things like that Smile

Thanks for helping improve the Inkscape Portable experience Wink

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

Bart.S
Offline
Last seen: 5 months 1 week ago
Developer
Joined: 2008-07-23 07:56
Launcher Code

Hi, it's me again Wink
Well, I've played a bit with the code. I want to learn how this EnvVar-redirecting works. Blum
I've deleted many lines of code and have changed the AppData redirecting.
Furthermore I've removed the SettingsDirectory\AppData renaming. It works for me (WinXP).
If you compare our codes with Winmerge, you will see all changes. But it's up to you whether you'll change your code or not.
Your launcher works too. Smile

;Copyright (C) 2004-2008 John T. Haller of PortableApps.com
;Copyright (C) 2008 Chris Morgan of PortableApps.com

;Website: http://PortableApps.com/InkscapePortable

;This software is OSI Certified Open Source Software.
;OSI Certified is a certification mark of the Open Source Initiative.

;This program is free software; you can redistribute it and/or
;modify it under the terms of the GNU General Public License
;as published by the Free Software Foundation; either version 2
;of the License, or (at your option) any later version.

;This program is distributed in the hope that it will be useful,
;but WITHOUT ANY WARRANTY; without even the implied warranty of
;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;GNU General Public License for more details.

;You should have received a copy of the GNU General Public License
;along with this program; if not, write to the Free Software
;Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.

!define PORTABLEAPPNAME "Inkscape Portable"
!define APPNAME "Inkscape"
!define NAME "InkscapePortable"
!define VER "1.6.0.0"
!define WEBSITE "PortableApps.com/InkscapePortable"
!define DEFAULTEXE "inkscape.exe"
!define DEFAULTAPPDIR "Inkscape"
!define DEFAULTSETTINGSDIR "settings"
!define DEFAULTGTKDIR "gtk"
!define LAUNCHERLANGUAGE "English"

;=== Program Details
Name "${PORTABLEAPPNAME}"
OutFile "..\..\${NAME}.exe"
Caption "${PORTABLEAPPNAME} | PortableApps.com"
VIProductVersion "${VER}"
VIAddVersionKey ProductName "${PORTABLEAPPNAME}"
VIAddVersionKey Comments "Allows ${APPNAME} to be run from a removable drive.  For additional details, visit ${WEBSITE}"
VIAddVersionKey CompanyName "PortableApps.com"
VIAddVersionKey LegalCopyright "PortableApps.com & Contributors"
VIAddVersionKey FileDescription "${PORTABLEAPPNAME}"
VIAddVersionKey FileVersion "${VER}"
VIAddVersionKey ProductVersion "${VER}"
VIAddVersionKey InternalName "${PORTABLEAPPNAME}"
VIAddVersionKey LegalTrademarks "PortableApps.com is a Trademark of Rare Ideas, LLC."
VIAddVersionKey OriginalFilename "${NAME}.exe"
;VIAddVersionKey PrivateBuild ""
;VIAddVersionKey SpecialBuild ""

;=== Runtime Switches
CRCCheck On
WindowIcon Off
SilentInstall Silent
AutoCloseWindow True
RequestExecutionLevel user

; Best Compression
SetCompress Auto
SetCompressor /SOLID lzma
SetCompressorDictSize 32
SetDatablockOptimize On

;=== Include
;(Standard NSIS)
!include FileFunc.nsh
!insertmacro GetParameters
!insertmacro GetRoot
!insertmacro GetParent
;(NSIS Plugins)
;(Custom)
!include StrRep.nsh
!include ReplaceInFile.nsh
!include ReadINIStrWithDefault.nsh

;=== Program Icon
Icon "..\..\App\AppInfo\appicon.ico"

;=== Icon & Stye ===
;!define MUI_ICON "..\..\App\AppInfo\appicon.ico"

;=== Languages
LoadLanguageFile "${NSISDIR}\Contrib\Language files\${LAUNCHERLANGUAGE}.nlf"
!include PortableApps.comLauncherLANG_${LAUNCHERLANGUAGE}.nsh

Var PROGRAMDIRECTORY
Var SETTINGSDIRECTORY
Var ADDITIONALPARAMETERS
Var EXECSTRING
Var PROGRAMEXECUTABLE
Var SECONDARYLAUNCH
Var DISABLESPLASHSCREEN
Var LASTDRIVE
Var CURRENTDRIVE
Var MISSINGFILEORPATH
Var GTKDIRECTORY
Var ISDEFAULTDIRECTORY
Var INKSCAPELANGUAGE

Section "Main"
	;=== Check if already running
	System::Call 'kernel32::CreateMutexA(i 0, i 0, t "${NAME}") i .r1 ?e'
	Pop $0
	StrCmp $0 0 CheckINI
		StrCpy $SECONDARYLAUNCH "true"

	CheckINI:
		;=== Find the INI file, if there is one
		IfFileExists "$EXEDIR\${NAME}.ini" "" NoINI
			;=== Read the parameters from the INI file
			${ReadINIStrWithDefault} $0 "$EXEDIR\${NAME}.ini" "${NAME}" "${APPNAME}Directory" "App\${DEFAULTAPPDIR}"
			StrCpy $PROGRAMDIRECTORY "$EXEDIR\$0"
			${ReadINIStrWithDefault} $0 "$EXEDIR\${NAME}.ini" "${NAME}" "GTKDirectory" "NONE"
			StrCpy $GTKDIRECTORY "$EXEDIR\$0"
			${ReadINIStrWithDefault} $0 "$EXEDIR\${NAME}.ini" "${NAME}" "SettingsDirectory" "Data\${DEFAULTSETTINGSDIR}"
			StrCpy $SETTINGSDIRECTORY "$EXEDIR\$0"
			${ReadINIStrWithDefault} $PROGRAMEXECUTABLE "$EXEDIR\${NAME}.ini" "${NAME}" "${APPNAME}Executable" "${DEFAULTEXE}"
			${ReadINIStrWithDefault} $ADDITIONALPARAMETERS "$EXEDIR\${NAME}.ini" "${NAME}" "AdditionalParameters" ""
			${ReadINIStrWithDefault} $DISABLESPLASHSCREEN "$EXEDIR\${NAME}.ini" "${NAME}" "DisableSplashScreen" "false"
			Goto EndINI

	NoINI:
		;=== No INI file, so we'll use the defaults
		StrCpy $PROGRAMEXECUTABLE "${DEFAULTEXE}"
		StrCpy $ADDITIONALPARAMETERS ""
		StrCpy $DISABLESPLASHSCREEN "false"

		StrCpy $PROGRAMDIRECTORY "$EXEDIR\App\${DEFAULTAPPDIR}"
		IfFileExists "$PROGRAMDIRECTORY" "" NoProgramEXE
			StrCpy $SETTINGSDIRECTORY "$EXEDIR\Data\${DEFAULTSETTINGSDIR}"
			StrCpy $ISDEFAULTDIRECTORY "true"
			;=== Check GTK directory
			IfFileExists "$PROGRAMDIRECTORY\libgtk-win32*.*" "" GTKSeparate
				StrCpy $GTKDIRECTORY "NONE"
				Goto EndINI

			GTKSeparate:
				IfFileExists "$EXEDIR\App\${DEFAULTGTKDIR}\bin\*.*" "" GTKCommonFiles
					StrCpy $GTKDIRECTORY "$EXEDIR\App\${DEFAULTGTKDIR}"
					Goto EndINI

			GTKCommonFiles:
				${GetParent} $EXEDIR $0
				StrCpy $GTKDIRECTORY "$0\CommonFiles\GTK"
				Goto EndINI

	EndINI:
		IfFileExists "$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" FoundProgramEXE

	NoProgramEXE:
		;=== Program executable not where expected
		StrCpy $MISSINGFILEORPATH $PROGRAMEXECUTABLE
		MessageBox MB_OK|MB_ICONEXCLAMATION `$(LauncherFileNotFound)`
		Abort

	FoundProgramEXE:
		;=== Check if running
		StrCmp $SECONDARYLAUNCH "true" GetPassedParameters

	;CheckIfRunning:
		;=== Check if running
		FindProcDLL::FindProc "inkscape.exe"
		StrCmp $R0 "1" "" DisplaySplash

	;WarnAnotherInstance:
		MessageBox MB_OK|MB_ICONINFORMATION `$(LauncherAlreadyRunning)`
		Abort
	
	DisplaySplash:
		StrCmp $DISABLESPLASHSCREEN "true" GetPassedParameters
			;=== Show the splash screen while processing registry entries
			InitPluginsDir
			File /oname=$PLUGINSDIR\splash.jpg "${NAME}.jpg"
			newadvsplash::show /NOUNLOAD 1200 0 0 -1 /L $PLUGINSDIR\splash.jpg

	GetPassedParameters:
		;=== Get any passed parameters
		${GetParameters} $0
		StrCmp "'$0'" "''" "" LaunchProgramParameters

		;=== No parameters
		StrCpy $EXECSTRING `"$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE"`
		Goto AdditionalParameters

	LaunchProgramParameters:
		StrCpy $EXECSTRING `"$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" $0`

	AdditionalParameters:
		StrCmp $ADDITIONALPARAMETERS "" SettingsDirectory
		;=== Additional Parameters
		StrCpy $EXECSTRING `$EXECSTRING $ADDITIONALPARAMETERS`

	SettingsDirectory:
		;=== Set the settings directory if we have a path
		IfFileExists "$SETTINGSDIRECTORY\*.*" GTKDirectory
			CreateDirectory $SETTINGSDIRECTORY
		
	GTKDirectory:
		StrCmp $GTKDIRECTORY "NONE" SetEnvironmentVariables
		IfFileExists "$GTKDIRECTORY\libgtk-win32*.*" "" SetEnvironmentVariables
		System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("GTK_BASEPATH", "$GTKDIRECTORY").r2'

	;InkscapeLanguage:
		ReadEnvStr $INKSCAPELANGUAGE "PortableApps.comLocaleglibc"
		StrCmp $INKSCAPELANGUAGE "" InkscapeLanguageSettingsFile
		StrCmp $INKSCAPELANGUAGE "en_US" SetInkscapeLanguageVariable
		IfFileExists "$PROGRAMDIRECTORY\locale\$INKSCAPELANGUAGE\*.*" SetInkscapeLanguageVariable
		
	InkscapeLanguageSettingsFile:
		ReadINIStr $INKSCAPELANGUAGE "$SETTINGSDIRECTORY\${NAME}Settings.ini" "Language" "LANG"
		StrCmp $INKSCAPELANGUAGE "" SetEnvironmentVariables
		StrCmp $INKSCAPELANGUAGE "en_US" SetInkscapeLanguageVariable
		IfFileExists "$PROGRAMDIRECTORY\locale\$INKSCAPELANGUAGE\*.*" SetInkscapeLanguageVariable SetEnvironmentVariables
		
	SetInkscapeLanguageVariable:
		System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("LANG", "$INKSCAPELANGUAGE").r0'

	SetEnvironmentVariables:
		; Stick Inkscape's directory into the path, just to make sure it gets its plugins
		ReadEnvStr $0 "PATH"
		System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("PATH", "$0;$PROGRAMDIRECTORY").r2'
		System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("APPDATA", "$SETTINGSDIRECTORY").r2'
		System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("USERPROFILE", "$SETTINGSDIRECTORY").r2'

		StrCmp $SECONDARYLAUNCH "true" LaunchAndExit

	;AdjustPaths:
		ReadINIStr $LASTDRIVE "$SETTINGSDIRECTORY\${NAME}Settings.ini" "${NAME}Settings" "LastDrive"
		${GetRoot} $EXEDIR $CURRENTDRIVE
		StrCmp $LASTDRIVE $CURRENTDRIVE LaunchNow
		IfFileExists "$SETTINGSDIRECTORY\${APPNAME}\preferences.xml" "" RememberPath
			${ReplaceInFile} "$SETTINGSDIRECTORY\${APPNAME}\preferences.xml" "$LASTDRIVE\" "$CURRENTDRIVE\"
			Delete "$SETTINGSDIRECTORY\${APPNAME}\preferences.xml.old"

	RememberPath:
		WriteINIStr "$SETTINGSDIRECTORY\${NAME}Settings.ini" "${NAME}Settings" "LastDrive" "$CURRENTDRIVE"

	LaunchNow:
		SetOutPath "$EXEDIR\Data"
		ExecWait $EXECSTRING

	CheckRunning:
		Sleep 1000
		FindProcDLL::FindProc "$PROGRAMEXECUTABLE"                  
		StrCmp $R0 "1" CheckRunning
		Goto TheEnd

	LaunchAndExit:
		Exec $EXECSTRING

	TheEnd:
		newadvsplash::stop /WAIT
SectionEnd
Bart.S
Offline
Last seen: 5 months 1 week ago
Developer
Joined: 2008-07-23 07:56
Language Switcher Bug

I found a bug in the code.
line 218-220 (your code) or 199-201 (my variant):

GTKDirectory:
StrCmp $GTKDIRECTORY "NONE" SetEnvironmentVariables
IfFileExists "$GTKDIRECTORY\libgtk-win32*.*" "" SetEnvironmentVariables

Should be:

GTKDirectory:
StrCmp $GTKDIRECTORY "NONE" InkscapeLanguage
IfFileExists "$GTKDIRECTORY\libgtk-win32*.*" "" InkscapeLanguage
Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 4 months ago
Joined: 2007-04-15 21:08
:-)

Nice catch... fixed in DT2.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 4 months ago
Joined: 2007-04-15 21:08
Development Test 2

is out. Read the release notes to see what I did.

Thanks to all those who've been helping "improve the Inkscape Portable experience" Wink

Smile

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

horusofoz
horusofoz's picture
Offline
Last seen: 1 year 2 months ago
Joined: 2008-04-03 22:45
Woohoo :p

Thanks

PortableApps.com Advocate

horusofoz
horusofoz's picture
Offline
Last seen: 1 year 2 months ago
Joined: 2008-04-03 22:45
Ok been using this off and on

Ok been using this off and on for over month now. Seems good. Any word on how its going at your end?

PortableApps.com Advocate

youngheart80
Offline
Last seen: 1 year 3 months ago
Joined: 2006-11-02 12:44
Looks Fine to Me

Same here - I've been using it for almost two months, nearly every day. I've tested/used path effects, filter effects, dimensions tool, blur, export PNG, bitmap trace, and all the standard tools. No problems at all. It's hung once or twice, but I think that had more to do with overloading my computer at that moment rather than the program itself.

Here's my vote for an official release.

EDIT (1/8/2009) - Hmm...Just found something odd. I'm trying to change the font for a text object and for some reason only Sans is being selected. I can't get it to change to anything else. I'm going to try a reinstall to see if that'll fix it.

EDIT 2: (1/8/2009) - Reinstall didn't seem to help. I'm not sure if this is something that developed over time or if it's always this way. I'll try to get home to and try a fresh install on a computer I haven't put it one yet. Interestingly, it only appears to be an interface problem - I can change the font family attribute in the XML editor in Inkscape, so I guess I'll use that as a work around for now.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 4 months ago
Joined: 2007-04-15 21:08
Sounds like an Inkscape problem

rather than an Inkscape Portable problem.

Try looking around for other people having a similar issue, it doesn't sound to me like anything my launcher can have done.

Edit: Hekos on irc://irc.freenode.net/#inkscape says that the text toolbar thing doesn't work properly on Vista 64-bit: is that you're problem? For the moment, though, as a workaround, try using Ctrl+Shift+T and specifying the font there.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

youngheart80
Offline
Last seen: 1 year 3 months ago
Joined: 2006-11-02 12:44
It could be a case of the

It could be a case of the machine I'm on - not Vista and not 64-bit, but still could be the case. I only reported it on your portable version because I personally had never run into it elsewhere and didn't think to check the Inkscape IRC.

For now, it's not really a problem, just wanted to report it.

Thanks

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 4 months ago
Joined: 2007-04-15 21:08
I get it too

I can now confirm this bug, I'm getting it on this Vista Home Basic, 32-bit machine. Weird. It's an Inkscape bug. However, Ctrl+Shift+T is working fine - I prefer it, now I'll use it more often Smile

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

youngheart80
Offline
Last seen: 1 year 3 months ago
Joined: 2006-11-02 12:44
Agreed

I'll be using Ctrl+Shift+T from now on. Thanks for the work on this one and I look forward to seeing it officially released.

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 9 years 4 months ago
Joined: 2007-04-15 21:08
APPDATA... again...

I've found a very much corner case bug, thanks to this machine I'm on.

Normally, APPDATA will be a first-level subdirectory of USERPROFILE. On this machine, however, it's USERPROFILE\AppData\Roaming - summary: the current setup a) doesn't use the right settings and then b) proceeds to delete them after Inkscape closes. Whoops. I lost my settings that way. So I'm rewriting some of the code so that it'll handle this situation properly. New version coming sometime.

John T. Haller: I'm still waiting for the pre-release splash screen... I sent you the 128x128 image a while ago, could you please make/upload the splash screen for me so that I can put out Pre-Release 1?

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

John T. Haller
John T. Haller's picture
Offline
Last seen: 2 hours 32 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Splash

Sometimes, the impossible can become possible, if you're awesome!

Topic locked