300+ free and legal portable apps (over 9GB), up-to-date, & new apps regularly (Jul 28, 2014: Transmission-qt).
Get the fast, new 64GB PortableApps.com Companion, encrypted PortableApps.com Carbide, or carry your KeyZ.
PA.c Platform 12.0 Beta 3.2 (May 20, 2014) | PortableApps.com needs your help: Please donate today.

Pidgin portable launcher configuration

tinned (Homepage) - January 16, 2009 - 5:35am
Share on Facebook

Hi!

I have separated as far as possible the applications from the data. Therefor i have a different directory structure as maybe some of you have. Anyway, in most of the portable launchers there is a setting for the data directory. I use this setting to seperate data and application.

The portable launcher for Pidgin is not able to change the diectory for the users data. It is not possible to configure the path vie the .ini file!! Launcher does not support it! Sad

I modified the launcher for me localy. But it would be nice to get this changes also into the version available here. Smiling

For that i added the .ini parameter "SettingsDirectory=" and did the following changes to the launcher ...

33c30
< !define DEFAULTSETTINGSDIR "settings"
---
> !define DEFAULTSETTINGSDIR "Data\settings"
111a105
> ${ReadINIStrWithDefault} $SETTINGSDIRECTORY "$EXEDIR\${NAME}.ini" "${NAME}" "SettingsDirectory" ""
120c114,116
< StrCpy "$SETTINGSDIRECTORY" "$EXEDIR\Data\${DEFAULTSETTINGSDIR}"
---
> StrCmp $SETTINGSDIRECTORY "" 0 SkipDefaultSettingDir
> StrCpy "$SETTINGSDIRECTORY" "$EXEDIR\${DEFAULTSETTINGSDIR}"
> SkipDefaultSettingDir:
246,247c239
< IfFileExists "$SETTINGSDIRECTORY\.purple\pounces.xml" "" StoreCurrentDriveLetter
< ${ReplaceInFile} "$SETTINGSDIRECTORY\.purple\pounces.xml" ">$1\" ">$0\"
---
> Delete "$SETTINGSDIRECTORY\.purple\prefs.xml.old"

Maybe someone can merge this things to the next version!

Thanks, bye
Gerhard


( categories: )

Deprecated

Many of our launchers are deprecating this functionality for a number of reasons. Pidgin Portable has actually not had this ability since the Gaim days.

Your data is contained in a separate Data directory in all apps and easily backed up by the PortableApps.com Backup utility either together with the apps or just the app data to save time and space. This also still allows you to easily move your app and its data from one drive to another.

Not adding in all the complexity of supporting Data directories outside of the launcher's base directory saves a significant amount of coding and support time, especially with some apps which store settings and data a bit oddly. Even some of the apps which happen to work with it don't officially support it and have experienced odd bugs around it. Some installers have to modify the data in the Data directory on upgrades due to the way the app itself changes and, in a custom layout, that will also fail.

Your best bet is to begin using the standard directory layouts as it will make your life a lot easier going forward.

Sometimes, the impossible can become possible, if you're awesome!

How did you get it to work

I like being able to specify where the Data and Settings are stored with the ini, could you upload the exe? or is that against the rules?