summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/libmate-panel-applet-private/panel-applets-manager-dbus.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mate-panel/libmate-panel-applet-private/panel-applets-manager-dbus.c b/mate-panel/libmate-panel-applet-private/panel-applets-manager-dbus.c
index 57e268c2..e0aacc0b 100644
--- a/mate-panel/libmate-panel-applet-private/panel-applets-manager-dbus.c
+++ b/mate-panel/libmate-panel-applet-private/panel-applets-manager-dbus.c
@@ -124,6 +124,7 @@ mate_panel_applets_manager_get_applet_factory_info_from_file (const gchar *filen
{
MatePanelAppletFactoryInfo *info;
GKeyFile *applet_file;
+ const char *lib_prefix;
gchar **groups;
gsize n_groups;
gint i;
@@ -163,6 +164,16 @@ mate_panel_applets_manager_get_applet_factory_info_from_file (const gchar *filen
return NULL;
}
+ lib_prefix = g_getenv ("MATE_PANEL_APPLET_LIB_PREFIX");
+ if (lib_prefix && g_strcmp0 (lib_prefix, "") != 0) {
+ char *location;
+ int location_len = strlen (lib_prefix) + strlen (info->location) + 1;
+ location = g_strnfill (location_len, 0);
+ g_strlcat (location, lib_prefix, location_len);
+ g_strlcat (location, info->location, location_len);
+ g_free (info->location);
+ info->location = location;
+ }
}
info->has_old_ids = FALSE;