--- /dev/null
+#!/usr/bin/env python
+# coding=UTF-8
+#
+# Copyright (C) 2010 Stefanos Harhalakis
+#
+# This file is part of wifieye.
+#
+# wifieye is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# wifieye is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with wifieye. If not, see <http://www.gnu.org/licenses/>.
+#
+# $Id: 0.py 2265 2010-02-21 19:16:26Z v13 $
+
+__version__ = "$Id: 0.py 2265 2010-02-21 19:16:26Z v13 $"
+
+import os.path
+from drlaunch import widget
+
+class DrlaunchPlugin(widget.DrlaunchPlugin):
+ pass
+
+def redirect_err():
+ import sys
+ import time
+
+ print "Opening /tmp/drlaunch.log"
+ f=open('/tmp/drlaunch.log', 'at', buffering=1)
+ sys.stdout=f
+ sys.stderr=f
+ print "Log open:", time.ctime()
+
+hd_plugin_type = DrlaunchPlugin
+
+if os.path.exists('/tmp/drlaunch.log'):
+ redirect_err()
+
+if __name__=="__main__":
+ import gobject
+ import gtk
+
+ gobject.type_register(hd_plugin_type)
+ obj=gobject.new(hd_plugin_type, plugin_id="plugin_id")
+ obj.show_all()
+ gtk.main()
+
+
+
+# vim: set ts=8 sts=4 sw=4 noet formatoptions=r ai nocindent:
+