Fallback to / as extension folder for unit tests
This commit is contained in:
parent
919b0ab0fd
commit
355ae063a6
1 changed files with 2 additions and 1 deletions
|
@ -566,7 +566,8 @@ midori_extension_get_config_dir (MidoriExtension* extension)
|
|||
if (!extension->priv->config_dir)
|
||||
{
|
||||
gchar* filename = g_object_get_data (G_OBJECT (extension), "filename");
|
||||
g_return_val_if_fail (filename != NULL, NULL);
|
||||
if (!filename)
|
||||
return "/";
|
||||
extension->priv->config_dir = g_build_filename (
|
||||
sokoke_set_config_dir (NULL), "extensions", filename, NULL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue