[Xfce4-commits] <xfce4-session:master> Allow slashes in the application name (bug #3995).

Nick Schermer noreply at xfce.org
Sun Feb 7 14:44:02 CET 2010


Updating branch refs/heads/master
         to e5780aa96ee901a4b6747a8d3c1472e956fee305 (commit)
       from 03bb380686deb6d382e80d000df8c7dc321f90c3 (commit)

commit e5780aa96ee901a4b6747a8d3c1472e956fee305
Author: Mike Massonnet <mmassonnet at xfce.org>
Date:   Sun Feb 7 14:39:55 2010 +0100

    Allow slashes in the application name (bug #3995).

 settings/xfae-model.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/settings/xfae-model.c b/settings/xfae-model.c
index e7a4b85..dcc6098 100644
--- a/settings/xfae-model.c
+++ b/settings/xfae-model.c
@@ -629,6 +629,7 @@ xfae_model_add (XfaeModel   *model,
       file = (n == 0)
         ?  g_strdup_printf ("%s.desktop", name)
         : g_strdup_printf ("%s-%u.desktop", name, n);
+      file = g_strdelimit (file, G_DIR_SEPARATOR_S, '-'); /* not a copy */
 
       g_snprintf (relpath, 4096, "%s%s", dir, file);
       if (!g_file_test (relpath, G_FILE_TEST_IS_REGULAR))



More information about the Xfce4-commits mailing list