diff options
author | William Wold <[email protected]> | 2019-02-07 21:50:38 -0500 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-06-19 18:45:36 +0200 |
commit | 0f6aa310eb1dbb8f2df599318d3835101b606faf (patch) | |
tree | 8b926fd05460e984b20128aec9a961c313508164 | |
parent | c45e92082b67c5b57a6a4a44551572882a4e6091 (diff) | |
download | mate-panel-0f6aa310eb1dbb8f2df599318d3835101b606faf.tar.bz2 mate-panel-0f6aa310eb1dbb8f2df599318d3835101b606faf.tar.xz |
Add MATE_PANEL_APPLET_LIB_PREFIX environment variable
-rw-r--r-- | mate-panel/libmate-panel-applet-private/panel-applets-manager-dbus.c | 11 |
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; |