mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
Only start status notifier item whether Linphone has been launched on KDE
This commit is contained in:
parent
4c91dfd81c
commit
6d9dd3bf5b
1 changed files with 11 additions and 3 deletions
|
|
@ -488,10 +488,18 @@ static gboolean _linphone_status_icon_impl_sn_is_supported(
|
|||
LinphoneStatusIconDescIsSupportedResultCb cb,
|
||||
void *user_data) {
|
||||
|
||||
_LinphoneStatusIconDesc *desc2 = g_new(_LinphoneStatusIconDesc, 1);
|
||||
void **data = g_new(void *, 3);
|
||||
_LinphoneStatusIconDesc *desc2;
|
||||
void **data;
|
||||
const char *desktop = g_getenv("XDG_CURRENT_DESKTOP");
|
||||
|
||||
if(desktop == NULL || g_strcmp0(desktop, "KDE") != 0) {
|
||||
*result = FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
desc2 = g_new(_LinphoneStatusIconDesc, 1);
|
||||
*desc2 = *desc;
|
||||
data = g_new(void *, 3);
|
||||
data[0] = desc2;
|
||||
data[1] = cb;
|
||||
data[2] = user_data;
|
||||
|
|
@ -500,7 +508,7 @@ static gboolean _linphone_status_icon_impl_sn_is_supported(
|
|||
(BcStatusNotifierSupportDetectionCb)_linphone_status_icon_impl_is_supported_cb,
|
||||
data
|
||||
);
|
||||
return 0;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
static const _LinphoneStatusIconDesc _linphone_status_icon_impl_status_notifier = {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue