Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 26-05-2015, 02:50   #1
Registered User

Join Date: May 2015
Posts: 35
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, 06:23   #2
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
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, 06:57   #3
Registered User

Join Date: May 2015
Posts: 35
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, 07:27   #4
Registered User

Join Date: Apr 2015
Location: San Francisco
Posts: 108
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, 07:45   #5
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
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 13-07-2015, 23:44   #6
Registered User

Join Date: May 2015
Posts: 35
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, 00:44   #7
Registered User

Join Date: May 2015
Posts: 35
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, 01:30   #8
Registered User

Join Date: Jul 2010
Location: Hannover - Germany
Boat: Amel Sharki
Posts: 2,541
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


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 07:10
Tachometer Sensor Preferences Rusty123 Electrical: Batteries, Generators & Solar 3 12-11-2013 05:50
2.6 beta got an error when creating senc sdowney717 OpenCPN 1 20-12-2011 20:03
Design / Construction Preferences in an Offshore Cruising Cat Southern Star Multihull Sailboats 12 19-11-2010 15:42

Advertise Here


All times are GMT -7. The time now is 02:29.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.