summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/panel-layout.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mate-panel/panel-layout.c b/mate-panel/panel-layout.c
index d550af97..fba28f69 100644
--- a/mate-panel/panel-layout.c
+++ b/mate-panel/panel-layout.c
@@ -102,7 +102,12 @@ panel_layout_filename ()
settings = g_settings_new (PANEL_SCHEMA);
layout = g_settings_get_string (settings, PANEL_DEFAULT_LAYOUT);
- filename = g_strdup_printf (PANEL_LAYOUTS_DIR "%s.layout", layout);
+ if (g_str_has_prefix (layout, "/")) {
+ filename = g_strdup (layout);
+ }
+ else {
+ filename = g_strdup_printf (PANEL_LAYOUTS_DIR "%s.layout", layout);
+ }
g_free (layout);
g_object_unref (settings);