I have recently started to work with TR. It's a great application. So I decided to carry it everywhere. I have installed TR in a USB memory and it runs very well.
But I discover that TR writes a hidden .thinkingrock directory on the HOME directory in every computer I use. I dislikes very much that behaviour. I think that a portable application have to run in a more clean way. No traces, please.
Nevertheless, I have found a trick to avoid this.
1. You must open the ThinkingRock.app package. CTRL+Click on ThinkingRock.app file on Finder and choose "Show package contents" (or whatever appears on English contextual menu; I use a Spanish Mac OS X)
2. Go to /ThinkingRock.app/Contents/Resources/tr/etc/. You should find a tr.conf file there.
3. Make a backup copy of tr.conf, please. A copy&paste operation it's enough.
4. Open the original tr.conf file. You can use any text editor, such as TextEdit.app.
You can see these (or similar) lines:
Code:
### TR user directory, ${HOME} will be replaced by user home directory ###
default_mac_userdir="${HOME}/.thinkingrock/tr-2.0.1"
### Live options ###
default_options="-J-Xverify:none -J-Dapple.laf.useScreenMenuBar=true -J-Xms64m -J-Xmx256m -J-XX:PermSize=64m -J-XX:MaxPermSize=256m -J-Dsun.java2d.noddraw=true -J-client"
### Test options ###
#default_options="-J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true -J-Xms64m -J-Xmx256m -J-XX:PermSize=64m -J-XX:MaxPermSize=256m -J-Dsun.java2d.noddraw=true -J-client"
### location of Java JDK/JRE ###
#jdkhome="/path/to/jdk"
### cluster paths ###
#extra_clusters=
5. Change the 2nd line (in the default configuration file):
Code:
default_mac_userdir="${HOME}/.thinkingrock/tr-2.0.1"
You should change ${HOME} for the ABSOLUTE PATH where you want the application writes the .thinkingrock directory. I suppose that it only works with the absolute path.
For example, in my case, I have a USB key that is called "USBJV" and I have installed TR application on "THINKING ROCK" directory. I suggest that you should put ".thinkingrock" directory on the same directory as TR app. Just for convenience.
So, you should write:
Code:
default_mac_userdir="/Volumes/USBJV/THINKING ROCK/.thinkingrock/tr-2.0.1"
Notice that I have changed "${HOME}" for "/Volumes/USBJV/THINKING ROCK".
Now, I have discovered that TR doesn't preserve my preferences. They change in every computer I use. So I'm trying to carry my TR preferences with me on my useful USB. Any ideas?