From 15daecacdce4988326f36f9f6cbb9e6e5d259888 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Fri, 31 Oct 2008 02:13:53 -0400 Subject: [PATCH] Allow absolute paths instead of plugin names If a mutter plugin name (in GConf, or more likely on the command line) looks like an absolute path, use that path directly rather than looking for the plugin in the plugins directory. --- src/compositor/mutter/mutter-plugin-manager.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/compositor/mutter/mutter-plugin-manager.c b/src/compositor/mutter/mutter-plugin-manager.c index 632d8c08c..4f936834f 100644 --- a/src/compositor/mutter/mutter-plugin-manager.c +++ b/src/compositor/mutter/mutter-plugin-manager.c @@ -399,7 +399,10 @@ mutter_plugin_manager_load (MutterPluginManager *plugin_mgr) ++params; } - path = g_strconcat (dpath, plugin_string, ".so", NULL); + if (g_path_is_absolute (plugin_string)) + path = g_strdup (plugin_string); + else + path = g_strconcat (dpath, plugin_string, ".so", NULL); if ((plugin = g_module_open (path, G_MODULE_BIND_LOCAL))) {