[Launch]
ProgramExecutable=MyPaint\mingw32\bin\mypaint-python3w.exe
WorkingDirectory=%PAL:AppDir%\MyPaint
CommandLineArguments=mingw32/bin/mypaint
DirectoryMoveOK=yes
SupportsUNC=yes

[Environment]
PATH=%PAL:AppDir%\MyPaint\mingw32\bin;%PAL:AppDir%\MyPaint\usr\bin

[Activate]
Registry=true

[RegistryKeys]
GSettingsFileChooser=HKCU\Software\GSettings\org\gtk\settings\file-chooser

[RegistryCleanupIfEmpty]
1=HKCU\Software\GSettings\org\gtk\settings
2=HKCU\Software\GSettings\org\gtk
3=HKCU\Software\GSettings\org
4=HKCU\Software\GSettings

[FilesMove]
recently-used.xbel=%LOCALAPPDATA%
bookmarks=%LOCALAPPDATA%\gtk-3.0

[DirectoriesMove]
mypaint=%LOCALAPPDATA%\mypaint

[DirectoriesCleanupIfEmpty]
1=%LOCALAPPDATA%\gtk-3.0
2=%LOCALAPPDATA%\Microsoft\Windows\Temporary Internet Files\mypaint
3=%LOCALAPPDATA%\Microsoft\Windows\Temporary Internet Files\thumbnails\large
4=%LOCALAPPDATA%\Microsoft\Windows\Temporary Internet Files\thumbnails\normal
5=%LOCALAPPDATA%\Microsoft\Windows\Temporary Internet Files\thumbnails

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\mypaint\settings.json
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:DoubleBackslash%\\
Replace=%PAL:Drive%%PAL:PackagePartialDir:DoubleBackslash%\\

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\mypaint\settings.json
Find=%PAL:LastPortableAppsBaseDir:DoubleBackslash%\\
Replace=%PAL:PortableAppsBaseDir:DoubleBackslash%\\

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\mypaint\settings.json
Find=%PAL:LastDrive%\\
Replace=%PAL:Drive%\\

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\recently-used.xbel
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardSlash%/
Replace=%PAL:Drive%%PAL:PackagePartialDir:ForwardSlash%/

[FileWrite5]
Type=Replace
File=%PAL:DataDir%\recently-used.xbel
Find=%PAL:LastPortableAppsBaseDir:ForwardSlash%/
Replace=%PAL:PortableAppsBaseDir:ForwardSlash%/

[FileWrite6]
Type=Replace
File=%PAL:DataDir%\recently-used.xbel
Find=%PAL:LastDrive%/
Replace=%PAL:Drive%/

[FileWrite7]
Type=Replace
File=%PAL:DataDir%\bookmarks
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:ForwardSlash%/
Replace=%PAL:Drive%%PAL:PackagePartialDir:ForwardSlash%/

[FileWrite8]
Type=Replace
File=%PAL:DataDir%\bookmarks
Find=%PAL:LastPortableAppsBaseDir:ForwardSlash%/
Replace=%PAL:PortableAppsBaseDir:ForwardSlash%/

[FileWrite9]
Type=Replace
File=%PAL:DataDir%\bookmarks
Find=%PAL:LastDrive%/
Replace=%PAL:Drive%/

[FileWrite10]
Type=Replace
File=%PAL:DataDir%\mypaint\settings.json
Find=DEFAULTDATADIR
Replace=%PAL:DataDir:DoubleBackslash%

[FileWrite11]
Type=Replace
File=%PAL:DataDir%\mypaint\settings.json
Find=LOCALAPPDATA
Replace=%LOCALAPPDATA:DoubleBackslash%

[FileWrite12]
Type=Replace
File=%PAL:DataDir%\mypaint\settings.json
Find=%CustomLastLocalAPPDATADirectory:DoubleBackslash%
Replace=%LOCALAPPDATA:DoubleBackslash%
