Fixing a bug with launching from a fresh system
[quicknote] / src / quicknote.py
index 9410944..1dcc853 100755 (executable)
@@ -13,13 +13,13 @@ import sys
 import logging
 import gettext
 
-_moduleLogger = logging.getLogger("quicknote")
+_moduleLogger = logging.getLogger(__name__)
 gettext.install('quicknote', unicode = 1)
 sys.path.append('/usr/lib/quicknote')
 
 
 import constants
-import libquicknote
+import quicknote_gtk
 
 
 if __name__ == "__main__":
@@ -29,9 +29,10 @@ if __name__ == "__main__":
                if e.errno != 17:
                        raise
 
-       userLogPath = "%s/quicknote.log" % constants._data_path_
-       logging.basicConfig(level=logging.DEBUG, filename=userLogPath)
+       logging.basicConfig(level=logging.DEBUG, filename=constants._user_logpath_)
        _moduleLogger.info("quicknote %s-%s" % (constants.__version__, constants.__build__))
+       _moduleLogger.info("OS: %s" % (os.uname()[0], ))
+       _moduleLogger.info("Kernel: %s (%s) for %s" % os.uname()[2:])
+       _moduleLogger.info("Hostname: %s" % os.uname()[1])
 
-       app = libquicknote.QuicknoteProgram()
-       app.main()
+       quicknote_gtk.run_quicknote()