xfce4-session: backport patch to fix a crash
[openembedded.git] / recipes / xfce-base / xfce4-session / allow_slashes.patch
1 commit e5780aa96ee901a4b6747a8d3c1472e956fee305
2 Author: Mike Massonnet <mmassonnet@xfce.org>
3 Date:   Sun Feb 7 14:39:55 2010 +0100
4
5     Allow slashes in the application name (bug #3995).
6
7 diff --git a/settings/xfae-model.c b/settings/xfae-model.c
8 index e7a4b85..dcc6098 100644
9 --- a/settings/xfae-model.c
10 +++ b/settings/xfae-model.c
11 @@ -629,6 +629,7 @@ xfae_model_add (XfaeModel   *model,
12        file = (n == 0)
13          ?  g_strdup_printf ("%s.desktop", name)
14          : g_strdup_printf ("%s-%u.desktop", name, n);
15 +      file = g_strdelimit (file, G_DIR_SEPARATOR_S, '-'); /* not a copy */
16  
17        g_snprintf (relpath, 4096, "%s%s", dir, file);
18        if (!g_file_test (relpath, G_FILE_TEST_IS_REGULAR))