[Launch]
ProgramExecutable=FontForge\run_fontforge.exe
CommandLineArguments=-nosplash
;HideCommandLineWindow=true
DirectoryMoveOK=yes
SupportsUNC=yes
WaitForEXE1=fontforge.exe

[Environment]
PATH=%PAL:AppDir%\FontForge;%PAL:AppDir%\FontForge\bin;%PATH%
DISPLAY=127.0.0.1:11.0
;XLOCALEDIR=%PAL:AppDir%\FontForge\bin\VcXsrv\locale
AUTOTRACE=potrace
HOME=%PAL:DataDir%\Home

[DirectoriesMove]
Home\.FontForge=%APPDATA%\FontForge

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\Home\.FontForge\prefs
Find=A:/;B:/;C:/;D:/;E:/;F:/;G:/;H:/;I:/;J:/;K:/;L:/;M:/;N:/;O:/;P:/;Q:/;R:/;S:/;T:/;U:/;V:/;W:/;X:/;Y:/;Z:/
Replace=ALLDRIVEBOOKMARKS

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\Home\.FontForge\prefs
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardSlash%/
Replace=%PAL:Drive%%PAL:PackagePartialDir:ForwardSlash%/

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\Home\.FontForge\prefs
Find=%PAL:LastPortableAppsBaseDir:ForwardSlash%/
Replace=%PAL:PortableAppsBaseDir:ForwardSlash%/

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\Home\.FontForge\prefs
Find=%PAL:LastDrive%/
Replace=%PAL:Drive%/

[FileWrite5]
Type=Replace
File=%PAL:DataDir%\Home\.FontForge\prefs
Find=ALLDRIVEBOOKMARKS
Replace=A:/;B:/;C:/;D:/;E:/;F:/;G:/;H:/;I:/;J:/;K:/;L:/;M:/;N:/;O:/;P:/;Q:/;R:/;S:/;T:/;U:/;V:/;W:/;X:/;Y:/;Z:/

[FileWrite6]
Type=Replace
File=%PAL:DataDir%\Home\.FontForge\FontsOpenAtLastQuit
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardSlash%/
Replace=%PAL:Drive%%PAL:PackagePartialDir:ForwardSlash%/

[FileWrite7]
Type=Replace
File=%PAL:DataDir%\Home\.FontForge\FontsOpenAtLastQuit
Find=%PAL:LastPortableAppsBaseDir:ForwardSlash%/
Replace=%PAL:PortableAppsBaseDir:ForwardSlash%/

[FileWrite8]
Type=Replace
File=%PAL:DataDir%\Home\.FontForge\FontsOpenAtLastQuit
Find=%PAL:LastDrive%/
Replace=%PAL:Drive%/
