gtorrent / gtorrent-core

Core library of gTorrent which handles everything but UI/UX
GNU General Public License v3.0
39 stars 12 forks source link

Cross platform home directory #28

Open fuyukaidesu opened 10 years ago

fuyukaidesu commented 10 years ago

Issue by nyanpasu Thursday Jul 17, 2014 at 16:34 GMT Originally opened as https://github.com/gtorrent/gTorrent-legacy/issues/77


We have a partial implementation of this.

On GNU/Linux: We will be using $XDG_CONFIG_HOME/gtorrent which usually translates to ~/.config/gtorrent

This is the working directory of gTorrent, it's where it will store:

On Windows: We will use %APPDATA%\gtorrent -- No, let's not forget how retarded some Windows babbies can get. Some anon suggests %APPDATA%\gtorrent for session related data and the user's home directory for configuration files. I +1 that.

On Mac: See GNU/Linux.

Obviously the fact that we'll have to split up where user configs and session data is stored makes this irritating as we can't use the same DIR. Therefore, on all core systems, there'll be two MACROs used to define where config/session data is stored, even if it is the same on GNU/Linux and Mac.

fuyukaidesu commented 10 years ago

Comment by benwaffle Thursday Jul 17, 2014 at 16:40 GMT


%appdata%

on OSX its ~/Library/Application Support

On Thu, Jul 17, 2014 at 12:34 PM, nyanpasu notifications@github.com wrote:

We have a partial implementation of this.

On Linux: We will be using $XDG_CONFIG_HOME/gtorrent which usually translates to ~/.config/gtorrent

On Windows: We will use %APP_fuckorwhateveritwascalled*%

  • Winfags please help me recall what it is Microshaft uses.

— Reply to this email directly or view it on GitHub https://github.com/gtorrent/gTorrent/issues/77.