tags 488492 + confirmed upstream patch

Hi,
ok I did understand your problem now.
Sorry that it confused me first...
I had a look at the source code and openbox is saving the 
XML content on its own and indeed the escaping is missing 
here.

The attached patch should fix this problem.

Kind regards
Nico
--- session.c	2008-06-30 13:18:05.000000000 +0200
+++ session.new.c	2008-06-30 13:18:17.000000000 +0200
@@ -544,8 +544,11 @@
 
             if (c->sm_client_id)
                 fprintf(f, "<window id=\"%s\">\n", c->sm_client_id);
-            else
-                fprintf(f, "<window command=\"%s\">\n", c->wm_command);
+            else {
+                t = g_markup_escape_text(c->wm_command);
+                fprintf(f, "<window command=\"%s\">\n", t);
+                g_free(t);
+            }
 
             t = g_markup_escape_text(c->name, -1);
             fprintf(f, "\t<name>%s</name>\n", t);

Reply via email to