[Launch]
ProgramExecutable=gimp\bin\gimp-2.8.exe
WorkingDirectory=%PAL:AppDir%\gimp\bin
DirectoryMoveOK=yes
SupportsUNC=yes

[Activate]
Ghostscript=find
Registry=true

[Environment]
GIMP2_DIRECTORY=%PAL:DataDir%\.gimp
HOME=%PAL:DataDir%\.gimp
PATH=%PAL:AppDir%\gimp\bin;%PAL:AppDir%\GIMP\lib\gimp\2.0\plug-ins;%PATH%;
PYTHONPATH=%PAL:AppDir%\gimp\Python
LANG=%PAL:LanguageCustom%
GTK_BASEPATH=%PAL:AppDir%\gimp\bin

[FilesMove]
settings\recently-used.xbel=%LOCALAPPDATA%
settings\gtkfilechooser.ini=%LOCALAPPDATA%\gtk-2.0

[DirectoriesMove]
fontconfig=%LOCALAPPDATA%\fontconfig
-=%LOCALAPPDATA%\gegl-0.2
-=%USERPROFILE%\.thumbnails
-=%USERPROFILE%\Local Settings\Temporary Internet Files\gegl-0.2
-=%LOCALAPPDATA%\Microsoft\Windows\Temporary Internet Files\gegl-0.2

[DirectoriesCleanupIfEmpty]
1=%LOCALAPPDATA%\gtk-2.0

[Language]
Base=%PortableApps.comLocaleglibc%
CheckIfExists=%PAL:AppDir%\GIMP\share\locale\%PAL:LanguageCustom%\*.*
DefaultIfNotExists=en_US

[LanguageStrings]
sr_RS=sr
sr=sr@latin

[LanguageFile]
Type=INI
File=%PAL:DataDir%\settings\GIMPPortableSettings.ini
Section=GIMPPortableSettings
Key=Language

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\.gimp\gimprc
Find=(INITIALGIMPDATADIRECTORY)
Replace=%PAL:DataDir:DoubleBackslash%

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\.gimp\gimprc
Find=(INITIALPORTABLEAPPSDIRECTORY)
Replace=%PAL:PortableAppsDir:DoubleBackslash%

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\.gimp\gimprc
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir%
Replace=%PAL:Drive%%PAL:PackagePartialDir%

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\.gimp\gimprc
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:DoubleBackslash%
Replace=%PAL:Drive%%PAL:PackagePartialDir:DoubleBackslash%

[FileWrite5]
Type=Replace
File=%PAL:DataDir%\.gimp\gimprc
Find=%PAL:LastPortableAppsBaseDir%\
Replace=%PAL:PortableAppsBaseDir%\

[FileWrite6]
Type=Replace
File=%PAL:DataDir%\.gimp\gimprc
Find=%PAL:LastPortableAppsBaseDir:DoubleBackslash%\\
Replace=%PAL:PortableAppsBaseDir:DoubleBackslash%\\

[FileWrite7]
Type=Replace
File=%PAL:DataDir%\.gimp\gimprc
Find=%PAL:LastDrive%\\
Replace=%PAL:Drive%\\

[FileWrite8]
Type=Replace
File=%PAL:DataDir%\.gimp\pluginrc
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:DoubleBackslash%
Replace=%PAL:Drive%%PAL:PackagePartialDir:DoubleBackslash%

[FileWrite9]
Type=Replace
File=%PAL:DataDir%\.gimp\themerc
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir:DoubleBackslash%
Replace=%PAL:Drive%%PAL:PackagePartialDir:DoubleBackslash%

[FileWrite10]
Type=Replace
File=%PAL:DataDir%\.gimp\themerc
Find=%PAL:LastDrive%%PAL:LastPackagePartialDir%
Replace=%PAL:Drive%%PAL:PackagePartialDir%

[FileWrite11]
Type=Replace
File=%PAL:DataDir%\.gimp\themerc
Find=%PAL:LastPortableAppsBaseDir%\
Replace=%PAL:PortableAppsBaseDir%\

[FileWrite12]
Type=Replace
File=%PAL:DataDir%\.gimp\themerc
Find=%PAL:LastPortableAppsBaseDir:DoubleBackslash%\\
Replace=%PAL:PortableAppsBaseDir:DoubleBackslash%\\

[FileWrite13]
Type=INI
File=%PAL:DataDir%\settings\GIMPPortableSettings.ini
Section=GIMPPortableSettings
Key=Language
Value=%PAL:LanguageCustom%

[FileWrite14]
Type=ConfigWrite
File=%PAL:AppDir%\gimp\lib\gimp\2.0\environ\default.env
Entry=PATH=
Value=%PAL:AppDir%\gimp\bin

[FileWrite15]
Type=ConfigWrite
File=%PAL:AppDir%\gimp\lib\gimp\2.0\interpreters\pygimp.interp
Entry=python=
Value=%PAL:AppDir%\gimp\Python\pythonw.exe

[FileWrite16]
Type=ConfigWrite
File=%PAL:AppDir%\gimp\lib\gimp\2.0\interpreters\pygimp.interp
Entry=/usr/bin/python=
Value=%PAL:AppDir%\gimp\Python\pythonw.exe

[FileWrite17]
Type=ConfigWrite
File=%PAL:AppDir%\gimp\lib\gimp\2.0\interpreters\pygimp.interp
Entry=:Python:E::py:
Value=:python:

[FileWrite18]
Type=Replace
File=%PAL:DataDir%\settings\recently-used.xbel
Find=%20
Replace=" "

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

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

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