I have been trouble shooting this issue, and while I have not found a way to fix the bug in Qt, I have found another workaround.
If I lie to Sigil about what desktop I am using, the program works normally.
I tell it that I am using XFCE instead of KDE and the crash is gone. I simply add XDG_CURRENT_DESKTOP=XFCE to the sigil startup script and it works. As far as I can tell, all of the Sigil features still work, but I have not run a complete test.
If I lie to it and tell it that I am using GTK, some of the menu bars stop working, so I am using XFCE.
Here is the new sigil script.
Code:
#!/bin/sh
# Entry point for Sigil on Unix systems.
# Adds linked Qt's lib directory to the LD_LIBRARY_PATH
QTLIB_DIR="/usr/lib64"
SIGIL_BIN_DIR="/usr/local/lib/sigil"
XDG_CURRENT_DESKTOP=XFCE
if [ -z "$LD_LIBRARY_PATH" ]; then
LD_LIBRARY_PATH="$SIGIL_BIN_DIR:$QTLIB_DIR"
else
LD_LIBRARY_PATH="$SIGIL_BIN_DIR:$QTLIB_DIR:$LD_LIBRARY_PATH"
fi
# Create an environment var for the Sigil share directory location.
if [ -z "$SIGIL_SHARE_PREFIX" ]; then
SIGIL_SHARE_PREFIX="/usr/local"
export SIGIL_SHARE_PREFIX
fi
# Not really needed anymore but left in for fringe cases
#if [ -z "$SIGIL_EXTRA_ROOT" ]; then
# SIGIL_EXTRA_ROOT="/usr/local/share/sigil"
# export SIGIL_EXTRA_ROOT
#fi
export LD_LIBRARY_PATH
exec /usr/local/lib/sigil/sigil "$@"
To do this, just edit the sigil startup script and add the line
XDG_CURRENT_DESKTOP=XFCE
The startup script is /usr/bin/sigil for the 0.9.8 version installed from the repos, or in /usr/local/bin/sigil for the 0.9.10 that I built from source.
Banjo
(_)=='=~