BTW: How does that work under Linux? If I got the changes right they are Windows only and under Linux it still uses the standard path's which would be not on (e.g.) a USB stick...?!
On linux a simple script should be enough.
I just hacked one to use C::B compiled with C::B.
Put the following script inside the folder where the run.sh
-script is and start it.
You might have to deal with LD_LIBRARY_PATH for a wxWidgets-installation, if you need to have it on the stick (or whatever), too.
But that's another thing and makes it not so easy to make C::B portable on linux.
If you have a C::B installed on the machine and all you want is to have portable configuration, you can use a call to codeblocks
instead of running run.sh
By the way:
Instead of dealing with APPDATA
(that seems to be a little hacky), it would be better (in my opinion) to pass an alternative conf-dir to C::B as start-parameter and provide a sdk-function that returns the actual used conf-dir (for the plugins or whatever needs it).