mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03:00
fix exclude.lst reading on MacOSX
This commit is contained in:
parent
57923529a5
commit
6cf6e1dcba
1 changed files with 5 additions and 1 deletions
|
@ -26,6 +26,10 @@
|
|||
#include "mirall/owncloudtheme.h"
|
||||
#include "mirall/miralltheme.h"
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
#include <mach-o/dyld.h>
|
||||
#endif
|
||||
|
||||
namespace Mirall {
|
||||
|
||||
QString MirallConfigFile::_passwd = QString();
|
||||
|
@ -69,7 +73,7 @@ QString MirallConfigFile::excludeFile() const
|
|||
fi.setFile( QString("/etc"), exclFile );
|
||||
#endif
|
||||
#ifdef Q_OS_MAC
|
||||
char buf[MAX_PATH+1];
|
||||
char buf[1024];
|
||||
uint32_t size = sizeof(buf);
|
||||
if (_NSGetExecutablePath(buf, &size) == 0) {
|
||||
qDebug() << " Executable path: <" << buf;
|
||||
|
|
Loading…
Reference in a new issue