Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 26-05-2015, 03:50   #1
Registered User

Join Date: May 2015
Posts: 28
Mac OS X - location of preferences / senc files

Hi there,

On Mac OS X (10.5) OpenCPN creates opencpn.ini and org.opencpn.plist files in the ~/Library/Preferences/ folder, which seems fine.

Running January's release of OpenCPN 4.0.0, it also creates an empty ~/Library/Preferences/opencpn directory, which seems odd.

OpenCPN is also creating its .BMP and .S57 files in ~/Library/Preferences/SENC/ which I found quite unexpected.

I guess this is a known issue, but I don't find this forum very easy to search, so I was wondering if this was considered a bug.

IMO the .BMP and .S57 files should be created in ~/Library/Preferences/opencpn or preferably somewhere in ~/Library/Application Support/

Thanks in advance for any advice.
__________________

__________________
Strolls is offline   Reply With Quote
Old 26-05-2015, 07:23   #2
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,774
Re: Mac OS X - location of preferences / senc files

I don't know if OpenCPN still runs with outdated Leopard (10.5). Soon we will have 10.11.
However after a long time request the actual alpha version 4.427 now stores the supplementary files of OpenCPN in ~/Library/Preferences/opencpn/ and not any more all over the folder ~/Library/Preferences/.
Hopefully one day the supplementary files of the different plugins will also be stored in ~/Library/Preferences/opencpn/plugins/ to finally stop all the mismatch with OS X.
*.plist files are however produced by the OS itself and must stay in their places.

Gerhard
__________________

__________________
CarCode is offline   Reply With Quote
Old 26-05-2015, 07:57   #3
Registered User

Join Date: May 2015
Posts: 28
Re: Mac OS X - location of preferences / senc files

I'm sorry for the typo. I'm running OpenCPN on 10.9.

Thanks for the reply.

If I wish to upgrade to 4.427, do I need to move anything?
__________________
Strolls is offline   Reply With Quote
Old 26-05-2015, 08:27   #4
Registered User

Join Date: Apr 2015
Location: San Francisco
Posts: 65
Re: Mac OS X - location of preferences / senc files

I've made a change the Platform.cpp file to move the configuration files on OSX to ~/Library/Preferences/opencpn. Hoping Dave can accept the pull request soon.
__________________
fogmachine is offline   Reply With Quote
Old 26-05-2015, 08:45   #5
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,774
Re: Mac OS X - location of preferences / senc files

Quote:
Originally Posted by fogmachine View Post
I've made a change the Platform.cpp file to move the configuration files on OSX to ~/Library/Preferences/opencpn. Hoping Dave can accept the pull request soon.
It is already in OCPN github sources.

Gerhard
__________________
CarCode is offline   Reply With Quote
Old 14-07-2015, 00:44   #6
Registered User

Join Date: May 2015
Posts: 28
Re: Mac OS X - location of preferences / senc files

I've just found the beta (?) version OpenCPN 4.1.602, and am pleased to report improvement beyond that described above:
Library/Preferences/opencpn.ini -> Library/Preferences/opencpn/opencpn.ini
Library/Preferences/raster_texture_cache/ -> Library/Preferences/opencpn/raster_texture_cache/
Library/Preferences/SENC/ -> Library/Preferences/opencpn/SENC/
I think that the SENC and raster_texture_cache directories should, according to Apple's dev guidelines, be stored in either "Library/Application Support/opencpn" or Library/Caches/opencpn

I'm sure you have considered this, and have good reasons for not doing so, but thought I'd add this comment to my previous thread so that others may find the discussion in future.

I am fairly easily able to generate 17GB of SENC and raster_texture_cache files.
__________________
Strolls is offline   Reply With Quote
Old 14-07-2015, 01:44   #7
Registered User

Join Date: May 2015
Posts: 28
Re: Mac OS X - location of preferences / senc files

Update:
Library/Logs/opencpn.log -> Library/Preferences/Logs/opencpn.log
I am not so impressed with.
__________________
Strolls is offline   Reply With Quote
Old 14-07-2015, 02:30   #8
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,774
Re: Mac OS X - location of preferences / senc files

Quote:
Originally Posted by Strolls View Post
Update:
Library/Logs/opencpn.log -> Library/Preferences/Logs/opencpn.log
I am not so impressed with.
Indeed that is not the best solution. It should be in ~/Library/Logs/ where logs belong to.
After implementing the files OCPNPlatform.cpp and OCPNPlatform.h there was some mismatch in the pathes for Mac OS X. However it is a good idea to keep all supplementary files in one directory now. It doesn't really matter which one but it needs to be only one for all. This helps users to find the files and in case of deinstallation deleting them all.
It is up to the plugin developers now to do the same e.g. keep their supplementary files in ~/Library/Preferences/opencpn/plugins/<plugin-name>/

Gerhard
__________________

__________________
CarCode is offline   Reply With Quote
Reply

Tags
enc, references

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing SENC directory location RhythmDoctor OpenCPN 2 05-05-2014 08:10
Tachometer Sensor Preferences Rusty123 Electrical: Batteries, Generators & Solar 3 12-11-2013 06:50
2.6 beta got an error when creating senc sdowney717 OpenCPN 1 20-12-2011 21:03
Design / Construction Preferences in an Offshore Cruising Cat Southern Star Multihull Sailboats 12 19-11-2010 16:42



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 23:58.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.