View Single Post
Old 02-04-2026, 04:06 PM   #4
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 9,277
Karma: 6565382
Join Date: Nov 2009
Device: many
They may be related. If Qt can not find its local data path, then Sigil will not find its preferences and therefore no settings ini file would be read or written to which means no window geometry is kept.

Qt uses Windows environment vars to determine its path. Perhaps yours are not set correctly or you have moved it to a network drive (damn ms cloud stuff) which I had a dickens to disable when I last used Windows.

Code:
QString Utility::DefinePrefsDir()
{
    // If the SIGIL_PREFS_DIR environment variable override exists; use it.
    // It's up to the user to provide a directory they have permission to write to.
    if (!SIGIL_PREFS_DIR.isEmpty()) {
        return SIGIL_PREFS_DIR;
    } else {
        return QStandardPaths::writableLocation(QStandardPaths::AppLocalDataLocation);
    }
}

Last edited by KevinH; 02-04-2026 at 04:09 PM.
KevinH is offline   Reply With Quote