-
Notifications
You must be signed in to change notification settings - Fork 8
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
Default folder locations for Mac OS X #5
Comments
Two things, maybe more. |
There is something to say for choosing /var/local or /opt/var (/opt should be a simlink to /usr/local and /opt/local does not exist in any linux or unix scheme!) but I have so far only seen /usr used this way. I use gentoo which is hardcore linux. |
Let me elaborate a little. Apple adopted linux as their kernel, like Novell did and as MS will do in due time. Linux (and Unix) or Posix have a directory scheme. Adopting the kernel is adopting the scheme. The differences should only be in their X implementation. /opt/local does not exist in any variation as it is a double. At present there is a movement (I applaud) to get rid of all extra and superfluous directories in this scheme. /bin and /sbin should move to /usr merging with those in there, /opt and /usr/local are the same. I have them simlinked. |
Hi Hika, I see you have a strong opinion on this. I'm not going to defend the way Apple selected paths. I don't like some of their choices either. That said, this is the system I have to deal with. Now I fully understand and appreciate your decision not to write a letter code for this hateful OS :). However, would you be willing to consider code contributions? That said, I have a few comments to make about your rant:
I propose to keep this closed and focus on user-specified ways to change default paths. I can perfectly live with software that decide to ignore all those cockamamie defaults paths dictated by Mac OS X. I have a harder time living with software that hard-code paths without the option to customize it. It's no coincidence that I opened #4 first. Flexibility is key. |
I noticed that on Mac OS X (or any posix system), the default locations are in
setup.py
:while the default location in
tv_grab_config.py
are:Three (related) comments:
The source dir is not the same in
setup.py
andtv_grab_config.py
.The correct default on Mac OS X should be respectively
opt_dict['home_dir'] + u'/Library/Preferences/com.github.tvgrabbers/sources' and opt_dict['home_dir']
+u'/Library/Caches/com.github.tvgrabbers/sources'
, or possibly all inopt_dict['home_dir'] + u'/Library/Application Support/xmltv/'
source_dir in setup.py should possibly be dependant on the package manager. For example, the install location for tvgrabpyAPI for me is
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/tvgrabpyAPI/
. The most logical install location is/opt/local/var/lib/tvgrabpyAPI
.The text was updated successfully, but these errors were encountered: