Fixing a bug with launching from a fresh system
[quicknote] / src / quicknote_gtk.py
old mode 100644 (file)
new mode 100755 (executable)
index 02cc124..ae30067
@@ -50,7 +50,7 @@ except NameError:
        _ = lambda x: x
 
 
-_moduleLogger = logging.getLogger("quicknote_gtk")
+_moduleLogger = logging.getLogger(__name__)
 PROFILE_STARTUP = False
 
 
@@ -63,8 +63,6 @@ class QuicknoteProgram(hildonize.get_app_class()):
                super(QuicknoteProgram, self).__init__()
                self._clipboard = gtk.clipboard_get()
 
-               dblog = os.path.join(self._user_data, "quicknote.log")
-
                _moduleLogger.info('Starting quicknote')
                self._wordWrapEnabled = False
 
@@ -242,12 +240,11 @@ class QuicknoteProgram(hildonize.get_app_class()):
                        self._wordWrapEnabled = config.getboolean(constants.__pretty_app_name__, "wordwrap")
                        self._window_in_fullscreen = config.getboolean(constants.__pretty_app_name__, "fullscreen")
                except ConfigParser.NoSectionError, e:
-                       warnings.warn(
+                       _moduleLogger.info(
                                "Settings file %s is missing section %s" % (
                                        self._user_settings,
                                        e.section,
-                               ),
-                               stacklevel=2
+                               )
                        )
 
                self._notizen.set_wordwrap(self._wordWrapEnabled)
@@ -328,6 +325,7 @@ class QuicknoteProgram(hildonize.get_app_class()):
                                self._clipboard.set_text(str(log))
                        return True
 
+       @gtk_toolbox.log_exception(_moduleLogger)
        def _on_toggle_search(self, *args):
                self._toggle_search()
 
@@ -459,7 +457,7 @@ class QuicknoteProgram(hildonize.get_app_class()):
                dialog.set_name(constants.__pretty_app_name__)
                dialog.set_version(constants.__version__)
                dialog.set_copyright("")
-               dialog.set_website("http://axique.de/index.php?f=Quicknote")
+               dialog.set_website("http://quicknote.garage.maemo.org")
                comments = _("%s is a note taking program; it is optimised for quick save and search of notes") % constants.__pretty_app_name__
                dialog.set_comments(comments)
                dialog.set_authors(["Christoph Wurstle <n800@axique.net>", "Ed Page <eopage@byu.net> (Blame him for the most recent bugs)"])