Installation paths - leamas/OpenCPN GitHub Wiki

General

Plugins are made up of four parts:

  • Dynamic libraries
  • Data files
  • Translations
  • Helper binaries.

The only mandatory part is the plugin dynamic library, many plugins is basically just this file + some translations.

All paths described here should be treated as read-only, even on platforms which does not enforce this. In particular, any file created by a plugin inside these directories might be removed or modified when a plugin is updated.

MacOS

~/Library/Application Support/OpenCPN/
      └── Contents
             β”œβ”€β”€ PlugIns
             β”‚      └──  LIBRARIES, BINARY HELPERS
             β”œβ”€β”€ Shared Support
             β”‚      └──plugins
             |             └── <plugin>
             |                    └── DATA
             └─- Resources
                    └─── *.lproj   (en_US, da_DK, sv_SE, etc.)
                              └───────── opencpn-<plugin>.mo  

Windows

%LOCALAPPDATA%  (default: C:\Users\<user>\Appdata\Local)
     └── opencpn 
           β”œβ”€β”€ plugins
           β”‚    β”œβ”€β”€ LIBRARIES, BINARY HELPERS
           β”‚    └── <plugin> 
           β”‚            └── DATA FILES 
           └── share
                └── locale
                       └──  *   (en_US, sv_SE, etc.)
                            └── LC_MESSAGES
                                  └── opencpn-<plugin>.mo

Linux

~/.local/
     β”œβ”€β”€ lib
     β”‚    └── opencpn
     β”‚          └── LIBRARIES
     β”œβ”€β”€ share
     β”‚    β”œβ”€β”€ opencpn
     β”‚    β”‚     └── plugins
     β”‚    β”‚            └── <plugin>
     β”‚    β”‚                    └── DATA FILES
     β”‚    └── locale
     |          └── *  (en_US, sv_SE, etc.)
     |              └── LC_MESSAGES
     |                   └── opencpn-<plugin>.mo
     └── bin
          └── BINARY HELPERS

flatpak

~/.var/app/org.opencpn.OpenCPN/
     β”œβ”€β”€ lib
     β”‚    └── opencpn
     β”‚          └── LIBRARIES
     β”œβ”€β”€ data
     β”‚    β”œβ”€β”€ opencpn
     β”‚    β”‚     └── plugins
     β”‚    β”‚             └── <plugin>
     β”‚    β”‚                     └── DATA FILES
     β”‚    └── locale
     |          └── *   (en_US, sv_SE, etc.)
     |              |
     |              └── LC_MESSAGES
     |                    └── opencpn-<plugin>.mo
     └── bin
          └── BINARY HELPERS
⚠️ **GitHub.com Fallback** ⚠️