+/*****************************************************************************
+ * Run: main thread
+ *****************************************************************************
+ * This part of the module is in a separate thread so that we do not have
+ * too much system() overhead.
+ *****************************************************************************/
+static void Timer( void *data )
+{
+ vlc_inhibit_t *p_ih = data;
+
+ /* If there is a playing video output, disable xscreensaver */
+ /* http://www.jwz.org/xscreensaver/faq.html#dvd */
+ const char *const ppsz_xsargs[] = { "/bin/sh", "-c",
+ "xscreensaver-command -deactivate &", (char*)NULL };
+ Execute( VLC_OBJECT(p_ih), ppsz_xsargs );
+
+ const char *const ppsz_gsargs[] = { "/bin/sh", "-c",
+ "gnome-screensaver-command --poke &", (char*)NULL };
+ Execute( VLC_OBJECT(p_ih), ppsz_gsargs );
+}