Bug 5638 - SqueezeCenter should write prefs to ~/Library/Application Support/SqueezeCenter
: SqueezeCenter should write prefs to ~/Library/Application Support/SqueezeCenter
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Misc
: 7.0
: PC MacOS X 10.4
: P2 major (vote)
: ---
Assigned To: Michael Herger
http://forums.slimdevices.com/showthr...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-01 16:27 UTC by Spies Steven
Modified: 2009-09-08 09:26 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments
create and use proper osx prefs dir (751 bytes, patch)
2007-10-14 00:01 UTC, KDF
Details | Diff
untested, more complete, patch (1.99 KB, patch)
2007-10-14 08:41 UTC, Blackketter Dean
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Spies Steven 2007-10-01 16:27:25 UTC
SqueezeCenter for Macintosh is currently writing prefs to ~/Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/prefs/ it should write prefs to ~/Library/Application Support/SqueezeCenter/ or similar.  One of the problems this causes is the loss of prefs during an update.
Comment 1 KDF 2007-10-01 21:11:45 UTC
is this valid for 10.3 as well as 10.4?  I'm new to 10.4, and I'm not familiar with the "application support" folder tree.
Comment 2 Blackketter Dean 2007-10-01 22:06:02 UTC
I believe that 10.3 and 10.4 both have  ~/Library/Application Support/ 

See: http://developer.apple.com/documentation/MacOSX/Conceptual/BPFileSystem/Articles/WhereToPutFiles.html

Comment 3 Michael Herger 2007-10-08 07:14:46 UTC
Dean - where would I find code for this? Is it a shell script? C code?
Comment 4 Blackketter Dean 2007-10-13 23:32:55 UTC
You should be able to create the paths in perl in OSDetect.pm
Comment 5 KDF 2007-10-14 00:01:46 UTC
Created attachment 2267 [details]
create and use proper osx prefs dir

something like this should do it.  note that logs and cache dirs still point to SlimServer naming.
Comment 6 Blackketter Dean 2007-10-14 08:40:14 UTC
Ah, that's good.  But let's take the opportunity to fix all the OSX paths at once and move away from ~/Library/SlimDevices to ~/Library/Application Support/SqueezeCenter for plugins, etc...  as well as rename to SqueezeCenter for logs, caches etc. when writing out.

Untested patch of what I'm thinking attached.
Comment 7 Blackketter Dean 2007-10-14 08:41:02 UTC
Created attachment 2269 [details]
untested, more complete, patch
Comment 8 Michael Herger 2007-10-15 08:38:31 UTC
Looking good on 10.4.10 - checked in as change 13803
Comment 9 Chris Owens 2008-03-07 09:04:18 UTC
This bug is being closed since it was resolved for a version which is now released!  Please download the new version of SqueezeCenter (formerly SlimServer) at http://www.slimdevices.com/su_downloads.html

If you are still seeing this bug, please re-open it and we will consider it for a future release.