mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 20:18:09 +00:00
Fix looking up of icons by name
This commit is contained in:
parent
8b3d28af54
commit
1d2f402b4d
1 changed files with 12 additions and 0 deletions
12
gtk/main.c
12
gtk/main.c
|
|
@ -2124,6 +2124,18 @@ int main(int argc, char *argv[]){
|
|||
/*for pulseaudio:*/
|
||||
g_setenv("PULSE_PROP_media.role", "phone", TRUE);
|
||||
#endif
|
||||
|
||||
/* Add the data directory of the install prefix to XDG_DATA_DIRS
|
||||
* This environment variable is used by GTK+ to locate the directory
|
||||
* which stores icon images. */
|
||||
tmp = g_getenv("XDG_DATA_DIRS");
|
||||
if(tmp && strlen(tmp) > 0) {
|
||||
char *xdg_data_dirs = g_strdup_printf("%s:%s", PACKAGE_DATA_DIR, tmp);
|
||||
g_setenv("XDG_DATA_DIRS", xdg_data_dirs, TRUE);
|
||||
g_free(xdg_data_dirs);
|
||||
} else {
|
||||
g_setenv("XDG_DATA_DIRS", PACKAGE_DATA_DIR, FALSE);
|
||||
}
|
||||
|
||||
lang=linphone_gtk_get_lang(config_file);
|
||||
if (lang == NULL || lang[0]=='\0'){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue