@@ -57,21 +57,23 @@ bool findPluginDir(QDir *pluginsDir)
57
57
58
58
#elif defined(Q_OS_MAC)
59
59
pluginsDir->setPath ( QCoreApplication::instance ()->applicationDirPath () );
60
- if ( pluginsDir->dirName () == " MacOS"
61
- && pluginsDir->cdUp () // Contents
62
- && pluginsDir->cd (" Resources" )
63
- && pluginsDir->cd (" plugins" ))
60
+ if (pluginsDir->dirName () != " MacOS" ) {
61
+ return false ;
62
+ }
63
+
64
+ if ( pluginsDir->cdUp () // Contents
65
+ && pluginsDir->cd (" Plugins" )
66
+ && pluginsDir->cd (" copyq" ))
64
67
{
65
68
// OK, found it in the bundle
66
69
COPYQ_LOG (" Found plugins in application bundle" );
67
70
} else if (
68
- pluginsDir->setPath ( QCoreApplication::instance ()->applicationDirPath () ),
69
- pluginsDir->dirName () == " MacOS"
70
- && pluginsDir->cdUp () // Contents
71
- && pluginsDir->cdUp () // copyq.app
72
- && pluginsDir->cdUp () // repo root
73
- && pluginsDir->cd (" plugins" )) {
74
- COPYQ_LOG (" Found plugins in build tree" );
71
+ pluginsDir->setPath ( QCoreApplication::instance ()->applicationDirPath () ),
72
+ pluginsDir->cdUp () // Contents
73
+ && pluginsDir->cdUp () // copyq.app
74
+ && pluginsDir->cdUp () // repo root
75
+ && pluginsDir->cd (" plugins" )) {
76
+ COPYQ_LOG (" Found plugins in build tree" );
75
77
} else {
76
78
return false ;
77
79
}
0 commit comments