Earlier versions of vidalia could be run portably, i.e. a directory containing tor and vidalia could be moved around and everything worked. This was possible using the --datadir
But now regardless of this vidalia is looking at program files and other places. This got broken unfortunately.
Trac: Username: toruser1
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
I can't reproduce this.
What exactly is Vidalia looking in other places? All that I can think of is torrc if Tor's already running, in which case it won't be portable.
If I run Vidalia (0.2.13-git) on a system with no configuration files, I am prompted for the location of tor (as expected). I specify tor location, save settings, successfully connect to the tor network, then exit Vidalia.
$ ./Vidalia.app/Contents/MacOS/Vidalia
Afterwards, I see that the following files were created in my home directory.
However, if I include the parameter "--datadir ~/.tordata" (with or without quotes) when I specified the Tor binary location, Vidalia complains that it cannot find Tor.
It seems logical that the --datadir parameter value should be passed to Tor when present.
chiiph pointed out that the Tor datadir can be specified via the Data Directory field in the Advanced settings.
I found that Vidalia does not save the value of that field if it has prompted you for the location of the Tor binary. If you relaunch Vidalia, you can successfully configure a custom data directory and relaunch Vidalia AGAIN for the change to take effect. This is a bug.
The fact that you have to restart Vidalia isn't a bug, because you are changing something that can't change while Tor's running.
I can't locate the part of the code where it prompts if it doesn't have a TorExecutable set. If you think that is the bug, please fill a different ticket. And may be provide a patch? ;)
I've continued to look at this and my current results contradict my earlier testing. Can someone else follow these steps and confirm in case my environment is just hosed?
Remove all configuration files from default locations
rm -r -f ~/.tor/ ~/Library/Vidalia/
Create custom configuration files in a custom datadir
cat ~/.vidalia/vidalia.conf
[Tor]
ControlPort=9051
TorExecutable=/Applications/TorBrowser_en-US.app/Contents/MacOS/tor
Torrc=/Users/jrklein/.vidalia/torrc
Launch Vidalia and specify the custom datadir
./Vidalia.app/Contents/MacOS/Vidalia --datadir=/Users/jrklein/.vidalia
Vidalia displays the following dialog:
"Vidalia was unable to star Tor. Check your settings to ensure the correct name and location of your Tor executable is specified." Show Settings | Cancel | Help
When I click "Show Setting", I see the following values:
General->Tor: tor
Advanced->TorConfig: /Users/jrklein/Library/Vidalia/torrc
Advanced->DataDirectory: EMPTY
EXPECTED RESULTS
Vidalia should be able to find Tor instead of displaying the error in step #4 (closed).
Vidalia should display my settings instead of displaying the defaults in step #5 (closed).
If I specify the same/valid Tor path as shown in the vidalia.conf from my custom datadir and restart Vidalia, it works fine but it writes it's settings to the default locations.
Trac: Username: jrklein Resolution: invalid toN/A Status: closed to reopened
While debugging, I realized that Vidalia only supports "--datadir
" and not "--datadir=". Be sure to include a space between each parameter and it's value! When I include a space, everything does seem to be working properly.
See #2965 (closed) for a Vidalia patch that will provide improved parameter validation and ability to read parameters that are separated by equal sign (ie: "--datadir=
").
If someone can reproduce the original issue, please reopen ticket and provide more info.
Trac: Username: jrklein Resolution: N/Ato invalid Status: reopened to closed