X-Git-Url: http://git.maemo.org/git/?p=drlaunch;a=blobdiff_plain;f=src%2Fdrlaunch_widget.py;fp=src%2Fdrlaunch_widget.py;h=0000000000000000000000000000000000000000;hp=c0f1f2a6b340ed42b07c3affad3709fe307cefea;hb=94695a8c9a3ebf78e1f4c32d854e6b5a163d4667;hpb=75247cf58d8d7f5a420aa300a01b1f50e4bffb23 diff --git a/src/drlaunch_widget.py b/src/drlaunch_widget.py deleted file mode 100755 index c0f1f2a..0000000 --- a/src/drlaunch_widget.py +++ /dev/null @@ -1,58 +0,0 @@ -#!/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 . -# -# $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: -