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.
This commit is contained in:
Owen W. Taylor 2008-10-31 02:13:53 -04:00
parent 1b943f8191
commit 15daecacdc

View File

@ -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)))
{