Opened 15 years ago

Closed 15 years ago

#997 closed Bug (wontfix)

"Application Support" directory should not be hardcoded

Reported by: ody Owned by: livings124
Priority: Normal Milestone: None Set
Component: Mac Client Version: 1.21
Severity: Normal Keywords:
Cc:

Description

The path to the user's Application Support directory on Mac OS X is hardcoded as SUPPORT_FOLDER. This isn't the recommended way of accomplishing this. See here:

http://developer.apple.com/documentation/Cocoa/Conceptual/LowLevelFileMgmt/Tasks/LocatingDirectories.html

The function NSSearchPathForDirectoriesInDomains() should be used instead.

This will protect against any problems in the future where the Application Support directory moves (if, for example, Apple decides to remove the space from the name, which would make at least some sense).

Present in r6053.

Change History (1)

comment:1 Changed 15 years ago by livings124

  • Resolution set to wontfix
  • Status changed from new to closed

Looking at examples, NSSearchPathForDirectoriesInDomains still requires to hardcode "Application Support" after finding the library directory. If we're going to have this hardcoded, we might as well just hardcode the tiny bit extra. Chances are that if Apple changes this, a lot of things will break in Transmission as well. Being a small opensource freeware app, it's easy to quickly release a fixed version if the time comes. I'm going to say leave at is for the speed and the reasons stated above.

Note: See TracTickets for help on using tickets.