File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030static inline File getSavedStateDirectory () {
3131#if defined(__APPLE__)
3232 File dir = File::getSpecialLocation (File::userApplicationDataDirectory).getChildFile (" Application Support/open-ephys" );
33- #else
33+ #elif _WIN32
3434 File dir = File::getSpecialLocation (File::commonApplicationDataDirectory).getChildFile (" Open Ephys" );
35+ #else
36+ File dir = File::getSpecialLocation (File::userApplicationDataDirectory).getChildFile (" .open-ephys" );;
3537#endif
3638 if (!dir.isDirectory ()) {
3739 dir.createDirectory ();
Original file line number Diff line number Diff line change @@ -85,6 +85,11 @@ PluginManager::PluginManager()
8585
8686 AddDllDirectory (installSharedPath.getFullPathName ().toWideCharPointer ());
8787 SetDefaultDllDirectories (LOAD_LIBRARY_SEARCH_DEFAULT_DIRS);
88+ #elif __linux__
89+ File installSharedPath = File::getSpecialLocation (File::userApplicationDataDirectory).getChildFile (" .open-ephys/shared" );
90+ if (!installSharedPath.isDirectory ()) {
91+ installSharedPath.createDirectory ();
92+ }
8893#endif
8994}
9095
@@ -100,9 +105,12 @@ void PluginManager::loadAllPlugins()
100105#ifdef __APPLE__
101106 paths.add (File::getSpecialLocation (File::currentApplicationFile).getChildFile (" Contents/PlugIns" ));
102107 paths.add (File::getSpecialLocation (File::userApplicationDataDirectory).getChildFile (" Application Support/open-ephys/plugins" ));
108+ #elif _WIN32
109+ paths.add (File::getSpecialLocation (File::currentApplicationFile).getParentDirectory ().getChildFile (" plugins" ));
110+ paths.add (File::getSpecialLocation (File::commonApplicationDataDirectory).getChildFile (" Open Ephys/plugins" ));
103111#else
104112 paths.add (File::getSpecialLocation (File::currentApplicationFile).getParentDirectory ().getChildFile (" plugins" ));
105- paths.add (File::getSpecialLocation (File::commonApplicationDataDirectory ).getChildFile (" Open Ephys /plugins" ));
113+ paths.add (File::getSpecialLocation (File::userApplicationDataDirectory ).getChildFile (" .open-ephys /plugins" ));
106114#endif
107115
108116 for (auto &pluginPath : paths) {
Original file line number Diff line number Diff line change 4040static inline File getPluginsLocationDirectory () {
4141#if defined(__APPLE__)
4242 File dir = File::getSpecialLocation (File::userApplicationDataDirectory).getChildFile (" Application Support/open-ephys" );
43- #else
43+ #elif _WIN32
4444 File dir = File::getSpecialLocation (File::commonApplicationDataDirectory).getChildFile (" Open Ephys" );
45+ #else
46+ File dir = File::getSpecialLocation (File::userApplicationDataDirectory).getChildFile (" .open-ephys" );;
4547#endif
4648 return std::move (dir);
4749}
You can’t perform that action at this time.
0 commit comments