added starting of xsnow
authorvlad <vlad@vlanout.(none)>
Thu, 29 Jul 2010 18:21:24 +0000 (21:21 +0300)
committervlad <vlad@vlanout.(none)>
Thu, 29 Jul 2010 18:21:24 +0000 (21:21 +0300)
applet/src/livewp-scene.c

index 2323d3f..122e21c 100644 (file)
@@ -169,7 +169,22 @@ bus_call (GstBus *bus, GstMessage *msg, AWallpaperPlugin *desktop_plugin)
 /*******************************************************************************/
 void
 init_scene_Xsnow(AWallpaperPlugin *desktop_plugin){
-
+    fprintf(stderr,"init_scene_Xsnow\n");
+    char* child_argv[128];
+    char *run_string = NULL;
+
+//    fprintf(stderr, "PARAMETR %s\n",  desktop_plugin->priv->theme_string_parametr1);
+//    run_string = g_strdup_printf("/usr/bin/mplayer -vo x11 -wid %d %s\n", \
+                                GDK_WINDOW_XID(desktop_plugin->priv->window->window), desktop_plugin->priv->theme_string_parametr1);
+    run_string= g_strdup_printf("/usr/bin/xsnow");
+    parsestring(run_string, child_argv);
+
+    desktop_plugin->priv->podpid = fork();
+    if (desktop_plugin->priv->podpid == 0){
+       execvp("/usr/bin/xsnow", child_argv);
+       fprintf(stderr,"Problem with new podprocess");
+    }
+    g_free(run_string);
 }
 void
 init_scene_Video(AWallpaperPlugin *desktop_plugin)