[tor-bugs] #11325 [Tor]: RFE: Adhere to XDB base directory specification

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Oct 19 19:56:57 UTC 2014


#11325: RFE: Adhere to XDB base directory specification
----------------------------+---------------------------------------
     Reporter:  jamielinux  |      Owner:
         Type:  defect      |     Status:  new
     Priority:  minor       |  Milestone:  Tor: unspecified
    Component:  Tor         |    Version:  Tor: unspecified
   Resolution:              |   Keywords:  tor-client xdg-compliance
Actual Points:              |  Parent ID:
       Points:              |
----------------------------+---------------------------------------

Comment (by rahulsundaram):

 I filed this ticket downstream with Fedora and Jamie was kind enough to
 forward it here.  I am planning to write some patches but wanted to
 confirm here that it makes sense.   I could use libxdg-basedir library
 which would add a dependency to that library or just do something similar
 independently.

 The rough plan is as follows:

 1) Write a patch that does the following:

 On launch,

 If configuration is system wide, leave it as it is.

 If ~/.torrc exists, move it to XDG_CONFIG_HOME/tor/torrc if
 XDG_CONFIG_HOME exists and if not store it in ~/confi/tor/torrc  else
 search according to $XDG_CONFIG_DIRS and read the configuration from the
 path specified.

 2) Update man page
 3) Update sample configuration files

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/11325#comment:5>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list