forked from XX-net/XX-Net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
debian
committed
Feb 16, 2015
1 parent
5fdca92
commit efc125e
Showing
5 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env python | ||
# coding:utf-8 | ||
|
||
import time | ||
|
||
class None_tray(): | ||
def notify_general(self, msg="msg", title="Title", buttons={}, timeout=3600): | ||
pass | ||
|
||
def on_quit(self, widget, data=None): | ||
pass | ||
|
||
def serve_forever(self): | ||
while True: | ||
time.sleep(100) | ||
|
||
sys_tray = None_tray() | ||
|
||
def main(): | ||
sys_tray.serve_forever() | ||
|
||
if __name__ == '__main__': | ||
main() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
#!/bin/bash | ||
python2 launcher/start.py | ||
|
||
if hash python2 2>/dev/null; then | ||
python2 launcher/start.py | ||
else | ||
python launcher/start.py | ||
fi |