fixed start theme Xsnow
[livewp] / applet / src / livewp-scene.c
index 233000d..86cd0d9 100644 (file)
@@ -179,7 +179,7 @@ bus_call (GstBus *bus, GstMessage *msg, AWallpaperPlugin *desktop_plugin)
 /*******************************************************************************/
 void
 init_scene_External(AWallpaperPlugin *desktop_plugin){
-    //fprintf(stderr,"init_scene_Xsnow\n");
+
     char* child_argv[2048];
     char *run_string = NULL;
     gchar *exec_path = NULL,
@@ -199,10 +199,14 @@ init_scene_External(AWallpaperPlugin *desktop_plugin){
         return;
     if (window_id){
         strwin = g_strdup_printf(" %s %i", window_id, GDK_WINDOW_XID(desktop_plugin->priv->window->window));
-    }
+    }else
+        strwin = "";
+
     if (view){
         strview = g_strdup_printf(" %s %i", view, desktop_plugin->priv->view);
-    }
+    }else
+        strview = "";
+
     run_string = g_strdup_printf("%s%s%s", exec_path, strwin, strview);
     fprintf(stderr, "runs string = %s\n", run_string);
     parsestring(run_string, child_argv);