[Launch]
ProgramExecutable=Pidgin\pidgin-portable.exe
CommandLineArguments=-c "%PAL:DataDir%\settings\.purple"
WorkingDirectory=%PAL:AppDir%\Pidgin
DirectoryMoveOK=yes
SupportsUNC=yes

[Environment]
PURPLEHOME=%PAL:DataDir%\settings
PIDGINLANG=%PAL:LanguageCustom%
PIDGIN_NO_DLL_CHECK=true
GAIM_NO_DLL_CHECK=true
PURPLE_NO_DLL_CHECK=true
PIDGIN_MULTI_INST=1
PIDGIN_ASPELL_DIR=%PAL:AppDir%\aspell
PURPLE_ASPELL_DIR=%PAL:AppDir%\aspell
PATH=%PAL:AppDir%;%PAL:AppDir%\Pidgin\Gtk;%PATH%;

[FilesMove]
settings\gtkrc=%PAL:AppDir%\Pidgin\Gtk\etc\gtk-2.0
.recently-used.xbel=%PAL:AppDir%
.gtk-bookmarks=%PAL:AppDir%
gtkfilechooser.ini=%LOCALAPPDATA%\gtk-2.0

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

[DirectoriesMove]
Enchant=%LOCALAPPDATA%\Enchant

[Language]
Base=%PortableApps.comLocaleglibc%
CheckIfExists=%PAL:AppDir%\Pidgin\locale\%PAL:LanguageCustom%\*.*

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

[FileWrite1]
Type=Replace
File=%PAL:DataDir%\settings\.purple\prefs.xml
Find="='%PAL:LastDrive%%PAL:LastPackagePartialDir%\"
Replace="='%PAL:Drive%%PAL:PackagePartialDir%\"

[FileWrite2]
Type=Replace
File=%PAL:DataDir%\settings\.purple\prefs.xml
Find="='%PAL:LastPortableAppsBaseDir%\"
Replace="='%PAL:PortableAppsBaseDir%\"

[FileWrite3]
Type=Replace
File=%PAL:DataDir%\settings\.purple\prefs.xml
Find="='%PAL:LastDrive%\'
Replace="='%PAL:Drive%\'

[FileWrite4]
Type=Replace
File=%PAL:DataDir%\settings\.purple\pounces.xml
Find=">%PAL:LastDrive%%PAL:LastPackagePartialDir%\"
Replace=">%PAL:Drive%%PAL:PackagePartialDir%\"

[FileWrite5]
Type=Replace
File=%PAL:DataDir%\settings\.purple\pounces.xml
Find=">%PAL:LastPortableAppsBaseDir%\"
Replace=">%PAL:PortableAppsBaseDir%\"

[FileWrite6]
Type=Replace
File=%PAL:DataDir%\settings\.purple\pounces.xml
Find=">%PAL:LastDrive%\'
Replace=">%PAL:Drive%\'

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

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

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