Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services/nm/sugar-nm-applet
diff options
context:
space:
mode:
Diffstat (limited to 'services/nm/sugar-nm-applet')
-rw-r--r--services/nm/sugar-nm-applet34
1 files changed, 34 insertions, 0 deletions
diff --git a/services/nm/sugar-nm-applet b/services/nm/sugar-nm-applet
new file mode 100644
index 0000000..537c3ec
--- /dev/null
+++ b/services/nm/sugar-nm-applet
@@ -0,0 +1,34 @@
+#! /bin/env python
+# vi: ts=4 ai noet
+#
+# Copyright (C) 2006, Red Hat, Inc.
+#
+# This program 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 2 of the License, or
+# (at your option) any later version.
+#
+# This program 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 this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+import sys
+import logging
+from sugar import logger
+from sugar import env
+
+sys.path.insert(0, env.get_services_dir())
+
+from nm import nmclient
+
+logger.start('nm-applet')
+
+logging.info('Starting network applet')
+
+app = nmclient.NMClientApp()
+app.run()