projects
/
theonering
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
662a95a
)
Cookies path does not exist issue resolved and making persistent for debugging purposes
author
Ed Page
<eopage@byu.net>
Sat, 3 Oct 2009 20:07:50 +0000
(15:07 -0500)
committer
Ed Page
<eopage@byu.net>
Sat, 3 Oct 2009 20:07:50 +0000
(15:07 -0500)
src/telepathy-theonering
patch
|
blob
|
history
diff --git
a/src/telepathy-theonering
b/src/telepathy-theonering
index
33decda
..
a98f62e
100755
(executable)
--- a/
src/telepathy-theonering
+++ b/
src/telepathy-theonering
@@
-37,9
+37,15
@@
import connection_manager
IDLE_TIMEOUT = 5000
IDLE_TIMEOUT = 5000
-def run_theonering():
+def run_theonering(persist):
linux_utils.set_process_name(constants.__app_name__)
linux_utils.set_process_name(constants.__app_name__)
+ try:
+ os.makedirs(constants._data_path_)
+ except OSError, e:
+ if e.errno != 17:
+ raise
+
@gobject_utils.async
def quit():
manager.quit()
@gobject_utils.async
def quit():
manager.quit()
@@
-51,11
+57,11
@@
def run_theonering():
quit()
return False
quit()
return False
- if 'THEONERING_PERSIST' not in os.environ:
+ if persist:
+ shutdown_callback = None
+ else:
gobject.timeout_add(IDLE_TIMEOUT, timeout_cb)
shutdown_callback = quit
gobject.timeout_add(IDLE_TIMEOUT, timeout_cb)
shutdown_callback = quit
- else:
- shutdown_callback = None
signal.signal(signal.SIGTERM, quit)
signal.signal(signal.SIGTERM, quit)
@@
-77,4
+83,7
@@
def run_theonering():
if __name__ == '__main__':
telepathy_utils.debug_divert_messages(os.getenv('THEONERING_LOGFILE'))
logging.basicConfig(level=logging.DEBUG)
if __name__ == '__main__':
telepathy_utils.debug_divert_messages(os.getenv('THEONERING_LOGFILE'))
logging.basicConfig(level=logging.DEBUG)
- run_theonering()
+
+ persist = 'THEONERING_PERSIST' in os.environ
+ persist = True
+ run_theonering(persist)