__app_magic__ = 0xdeadbeef
_data_path_ = os.path.join(os.path.expanduser("~"), ".dialcentral")
_user_settings_ = "%s/settings.ini" % _data_path_
+_user_logpath_ = "%s/dialcentral.log" % _data_path_
self._window.unfullscreen()
else:
self._window.fullscreen()
+ elif event.keyval == ord("l") and event.get_state() & gtk.gdk.CONTROL_MASK:
+ with open(constants._user_logpath_, "r") as f:
+ logLines = f.xreadlines()
+ log = "".join(logLines)
+ self._clipboard.set_text(str(log))
except Exception, e:
self._errorDisplay.push_exception()
if e.errno != 17:
raise
-userLogPath = "%s/dialcentral.log" % constants._data_path_
-logging.basicConfig(level=logging.DEBUG, filename=userLogPath)
+logging.basicConfig(level=logging.DEBUG, filename=constants._user_logpath_)
_moduleLogger.info("Dialcentral %s-%s" % (constants.__version__, constants.__build__))
try:
messagePart[0]
for messagePart in self._messagemodel
)
- # For some reason this kills clipboard stuff
- #self._clipboard.set_text(message)
+ self._clipboard.set_text(str(message))
except Exception, e:
_moduleLogger.exception(str(e))
* Fremantle: Notification Support including testing of custom notifications
* UI Tweak: Cut down the number of times the login dialog is needlessly displayed
* Bug Fix: Switching to accounts tab when callback is blank
+* Debugging: Log contents now accessible through Ctrl+l
1.0.7
* Sped up various login cases