mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Allow unsetting APPLICATION_URL and APPLICATION_VENDOR from configure
This commit is contained in:
parent
b588499734
commit
1163688f78
1 changed files with 11 additions and 1 deletions
|
|
@ -373,8 +373,18 @@ void App::initContentApp () {
|
|||
mEngine->addImageProvider(ThumbnailProvider::ProviderId, new ThumbnailProvider());
|
||||
|
||||
mEngine->rootContext()->setContextProperty("applicationName", APPLICATION_NAME);
|
||||
|
||||
#ifdef APPLICATION_URL
|
||||
mEngine->rootContext()->setContextProperty("applicationUrl", APPLICATION_URL);
|
||||
#else
|
||||
mEngine->rootContext()->setContextProperty("applicationUrl", "");
|
||||
#endif
|
||||
|
||||
#ifdef APPLICATION_VENDOR
|
||||
mEngine->rootContext()->setContextProperty("applicationVendor", APPLICATION_VENDOR);
|
||||
#else
|
||||
mEngine->rootContext()->setContextProperty("applicationVendor", "");
|
||||
#endif
|
||||
#ifdef APPLICATION_LICENCE
|
||||
mEngine->rootContext()->setContextProperty("applicationLicence", APPLICATION_LICENCE);
|
||||
#else
|
||||
|
|
@ -863,7 +873,7 @@ void App::setAutoStart (bool enabled) {
|
|||
"Exec=" + exec + " --iconified\n"
|
||||
"Terminal=false\n"
|
||||
"Categories=Network;Telephony;\n"
|
||||
"MimeType=x-scheme-handler/sip-linphone;x-scheme-handler/sip;x-scheme-handler/sips-linphone;x-scheme-handler/sips;x-scheme-handler/tel;x-scheme-handler/callto;\n"
|
||||
"MimeType=x-scheme-handler/sip-" EXECUTABLE_NAME ";x-scheme-handler/sip;x-scheme-handler/sips-" EXECUTABLE_NAME ";x-scheme-handler/sips;x-scheme-handler/tel;x-scheme-handler/callto;\n"
|
||||
);
|
||||
|
||||
mAutoStart = enabled;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue