diff --git a/README.rst b/README.rst index ce754c4..d0cf09e 100644 --- a/README.rst +++ b/README.rst @@ -48,12 +48,6 @@ To get the current development version, you need to have a working Python 3 envi Then run ``beeref`` or ``beeref filename.bee``. -If there are issues starting the application, run it with the environment variable ``QT_DEBUG_PLUGINS`` set to 1, for example from a Linux shell:: - - QT_DEBUG_PLUGINS=1 beeref - -This should tell you whether you need to install any additional libraries. - Features -------- @@ -79,6 +73,20 @@ The bee file format is a sqlite database inside which the images are stored in a Options for exporting from inside BeeRef are planned, but the above always works independently of BeeRef. +Troubleshooting +--------------- + +You can access the log output via *Help -> Show Debug Log*. In case BeeRef doesn't start at all, you can find the log file here: + +Windows: + + C:\Documents and Settings\USERNAME\Application Data\BeeRef\BeeRef.log + +Linux and MacOS: + + /home/USERNAME/.config/BeeRef/BeeRef.log + + Notes for developers -------------------- diff --git a/beeref/__main__.py b/beeref/__main__.py index d927579..edd1ee1 100755 --- a/beeref/__main__.py +++ b/beeref/__main__.py @@ -16,6 +16,7 @@ # along with BeeRef. If not, see . import logging +import os import platform import signal import sys @@ -106,10 +107,11 @@ def main(): logger.info(f'Using settings: {settings.fileName()}') logger.info(f'Logging to: {logfile_name()}') CommandlineArgs(with_check=True) # Force checking + + os.environ["QT_DEBUG_PLUGINS"] = "1" app = BeeRefApplication(sys.argv) palette = create_palette_from_dict(constants.COLORS) app.setPalette(palette) - bee = BeeRefMainWindow(app) # NOQA:F841 signal.signal(signal.SIGINT, handle_sigint) diff --git a/beeref/config.py b/beeref/config.py index 4828dc5..f8735be 100644 --- a/beeref/config.py +++ b/beeref/config.py @@ -208,6 +208,11 @@ logging_conf = { 'level': 'TRACE', 'propagate': False, }, + 'Qt': { + 'handlers': ['console', 'file'], + 'level': 'DEBUG', + 'propagate': False, + }, }, 'root': { 'handlers': ['console', 'file'],