diff -r -u OOoLatex-4.0.0-beta-2-linux.oxt/AddonRegistry.xcu OOoLatex-4.0.0-beta-2-linux.oxt.mod/AddonRegistry.xcu --- OOoLatex-4.0.0-beta-2-linux.oxt/AddonRegistry.xcu 2007-11-03 09:05:23.000000000 -0700 +++ OOoLatex-4.0.0-beta-2-linux.oxt.mod/AddonRegistry.xcu 2008-04-05 01:57:26.000000000 -0700 @@ -15,10 +15,10 @@ <value></value> </prop> <prop oor:name="GsPath" oor:type="xs:string"> - <value></value> + <value>file:///usr/bin/</value> </prop> <prop oor:name="LatexPath" oor:type="xs:string"> - <value></value> + <value>file:///usr/bin/</value> </prop> <node oor:name="ShortCuts"> <node oor:name="EquationWriter" oor:op="replace"> diff -r -u OOoLatex-4.0.0-beta-2-linux.oxt/OOoLatex/OOoLatexAbout.xba OOoLatex-4.0.0-beta-2-linux.oxt.mod/OOoLatex/OOoLatexAbout.xba --- OOoLatex-4.0.0-beta-2-linux.oxt/OOoLatex/OOoLatexAbout.xba 2007-11-23 15:09:39.000000000 -0700 +++ OOoLatex-4.0.0-beta-2-linux.oxt.mod/OOoLatex/OOoLatexAbout.xba 2008-04-05 01:01:00.000000000 -0700 @@ -57,7 +57,7 @@ end sub sub SysLogButton() - if not FileExists( sPkgPath & "System.out" ) then + if not FileExists( sUserPath & "System.out" ) then sMsg = "You have to use the module Equation once to generate the system logs." else sMsg = ReadAboutFile( "System.out") diff -r -u OOoLatex-4.0.0-beta-2-linux.oxt/OOoLatex/OOoLatexEquation.xba OOoLatex-4.0.0-beta-2-linux.oxt.mod/OOoLatex/OOoLatexEquation.xba --- OOoLatex-4.0.0-beta-2-linux.oxt/OOoLatex/OOoLatexEquation.xba 2007-11-23 15:09:39.000000000 -0700 +++ OOoLatex-4.0.0-beta-2-linux.oxt.mod/OOoLatex/OOoLatexEquation.xba 2008-04-05 01:37:39.000000000 -0700 @@ -202,7 +202,7 @@ else '*** MacOSX/Linux *** sShellCommand = "sh" - sShellArg = "'" & ConvertFromURL(sPkgPath) & "OOoLatex.sh' " & sFormat &_ + sShellArg = "'" & ConvertFromURL(sUserPath) & "OOoLatex.sh' " & sFormat &_ TranspOpt & iGraphicDPI & " '" & ConvertFromURL(sTmpPath) & "'" End if diff -r -u OOoLatex-4.0.0-beta-2-linux.oxt/OOoLatex/OOoLatexSysConfig.xba OOoLatex-4.0.0-beta-2-linux.oxt.mod/OOoLatex/OOoLatexSysConfig.xba --- OOoLatex-4.0.0-beta-2-linux.oxt/OOoLatex/OOoLatexSysConfig.xba 2007-11-23 15:09:39.000000000 -0700 +++ OOoLatex-4.0.0-beta-2-linux.oxt.mod/OOoLatex/OOoLatexSysConfig.xba 2008-04-05 01:21:26.000000000 -0700 @@ -81,7 +81,7 @@ end if 'Reset button - if FileExists(sPkgPath & "OOoLatex.sh") then + if FileExists(sUserPath & "OOoLatex.sh") then oDlgSysConfig.getControl("ResetButton").setEnable(true) else oDlgSysConfig.getControl("ResetButton").setEnable(fase) @@ -100,7 +100,7 @@ if getGUIType = 1 then sGS = "gswin32c" else sGS = "gs" if getGUIType = 1 then sExt = ".exe" else sExt = "" - if not FileExists(sPkgPath & "OOoLatex.sh") then + if not FileExists(sUserPath & "OOoLatex.sh") then ProgramNotFound("You have to configure your system before using the module Equation") elseif not FileExists(oSystemInfo.GsPath & sGS & sExt) then ProgramNotFound("Check the path to your Ghostdcript distribution, I cannot find " & sGS & " !") @@ -146,9 +146,9 @@ oFileAccess = createUnoService("com.sun.star.ucb.SimpleFileAccess") '*** Remove the files OOoLatex.sh and Sytem.out - cURL = ConvertToURL( sPkgPath & "OOoLatex.sh" ) + cURL = ConvertToURL( sUserPath & "OOoLatex.sh" ) If oFileAccess.exists( cURL ) Then oFileAccess.kill( cURL ) - cURL = ConvertToURL( sPkgPath & "System.out" ) + cURL = ConvertToURL( sUserPath & "System.out" ) If oFileAccess.exists( cURL ) Then oFileAccess.kill( cURL ) 'Disable the reset button @@ -256,7 +256,7 @@ ' Open sevice file and an output stream... oFileAccess = createUnoService("com.sun.star.ucb.SimpleFileAccess") - cURL = ConvertToURL( sPkgPath & "OOoLatex.sh" ) + cURL = ConvertToURL( sUserPath & "OOoLatex.sh" ) ' Get the path saved in the registry. oSystemInfo = GetConfigAccess( "/ooo.ext.ooolatex.Registry/SystemInfo", false) @@ -435,7 +435,7 @@ oTextStream = createUnoService("com.sun.star.io.TextOutputStream") ' Generate the OOoLatex script in the root of the package. - cURL = ConvertToURL( sPkgPath & "OOoLatex.sh" ) + cURL = ConvertToURL( sUserPath & "OOoLatex.sh" ) If oFileAccess.exists( cURL ) Then oFileAccess.kill( cURL ) 'Generatio of the script on sOOoLatex. @@ -455,9 +455,8 @@ "sys=$(uname -s)" & chr(10) &_ "[ ""$cpu"" = ""powerpc"" -o ""$mac"" = ""ppc"" ] && cpuType=ppc || cpuType=i386 " & chr(10) &_ "[ ""$sys"" = ""Darwin"" ] && osType=MacOSX || osType=Linux " & chr(10) &_ - "PkgDir=""" & ConvertFromURL(sPkgPath) & """" & chr(10) &_ + "PkgDir=""" & ConvertFromURL(sUserPath) & """" & chr(10) &_ chr(10) &_ - "PATH=""${PkgDir}bin/${osType}${cpuType}:$PATH""" & chr(10) &_ "PATH=""" & ConvertFromURL(sLatexPath) & ":$PATH""" & chr(10) &_ "PATH=""" & ConvertFromURL(sGSPath) & ":$PATH""" & chr(10) &_ "export PATH" & chr(10) &_ @@ -488,7 +487,6 @@ "}" & chr(10) &_ chr(10) &_ "SystemLog(){" & chr(10) &_ - chmod & chr(10) &_ "syslog=${PkgDir}System.out" & chr(10) &_ chr(10) &_ "uname -a > $syslog" & chr(10) &_