Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross platform home directory #28

Open
fuyukaidesu opened this issue Jul 21, 2014 · 1 comment
Open

Cross platform home directory #28

fuyukaidesu opened this issue Jul 21, 2014 · 1 comment

Comments

@fuyukaidesu
Copy link
Contributor

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:

  • Session data
  • Config data

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 fuyukaidesu added this to the 0.1.0 milestone Jul 21, 2014
@fuyukaidesu
Copy link
Contributor Author

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 [email protected] 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant