Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linphone-desktop
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
linphone-desktop
Commits
09fa8a86
Commit
09fa8a86
authored
Feb 17, 2017
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set the resources path correctly when executing the application from a Mac OS X bundle.
parent
97d308d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
CoreManager.cpp
linphone-desktop/src/components/core/CoreManager.cpp
+17
-2
No files found.
linphone-desktop/src/components/core/CoreManager.cpp
View file @
09fa8a86
...
...
@@ -20,12 +20,15 @@
* Author: Ronan Abhamon
*/
#include <QTimer>
#include "../../utils.hpp"
#include "../../app/Paths.hpp"
#include "CoreManager.hpp"
#include <QCoreApplication>
#include <QDir>
#include <QTimer>
using
namespace
std
;
// =============================================================================
...
...
@@ -33,6 +36,18 @@ using namespace std;
CoreManager
*
CoreManager
::
m_instance
=
nullptr
;
CoreManager
::
CoreManager
(
QObject
*
parent
)
:
QObject
(
parent
),
m_handlers
(
make_shared
<
CoreHandlers
>
())
{
QDir
dir
(
QCoreApplication
::
applicationDirPath
());
if
(
dir
.
dirName
()
==
"MacOS"
)
{
dir
.
cdUp
();
dir
.
cd
(
"Resources"
);
QDir
mspluginsdir
(
dir
);
mspluginsdir
.
cd
(
"lib/mediastreamer/plugins"
);
QDir
datadir
(
dir
);
datadir
.
cd
(
"share"
);
linphone
::
Factory
::
get
()
->
setMspluginsDir
(
::
Utils
::
qStringToLinphoneString
(
mspluginsdir
.
absolutePath
()));
linphone
::
Factory
::
get
()
->
setTopResourcesDir
(
::
Utils
::
qStringToLinphoneString
(
datadir
.
absolutePath
()));
}
m_core
=
linphone
::
Factory
::
get
()
->
createCore
(
m_handlers
,
Paths
::
getConfigFilepath
(),
""
);
m_core
->
setVideoDisplayFilter
(
"MSOGL"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment