|
|
#1 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 326
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
Two problems in Sigil 2.7.0 in Windows11
1. Wanting to edit a template file, I clicked on the 'Open Preferences Location' button in Sigil on my Windows box and to my surprise, it landed me in Desktop on the File Explorer. I tried many times, and it was consistent.
I navigated to the directory I needed: username\AppData\.local\share\sigil-ebook\sigil\ , but this may be a problem for some users. The 'Open Preferences Location' function works as expected in Linux and on my MacBook, but not in Windows 11. 2. The second problem I find is that Sigil on Windows does not remember the width of the Book Browser pane between sessions. It appears to do so correctly in Linux and on the MacBook. In Windows, Sigil always starts with the Book Browser at its minimum width - all I can read of the chapter names is Ch...ml. Not mega problems, but the preferences location might be difficult for some users. Last edited by philja; 02-04-2026 at 03:14 PM. Reason: corrected preferences path |
|
|
|
|
|
#2 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,063
Karma: 211348980
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Neither of your issues manifest for me on any of my Windows 10 or 11 test environments. If number 2 was a widespread problem, there would have been lots of people screaming already. Not sure what might be going on on your machine.
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
A Hairy Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,455
Karma: 20534347
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
hmmm...I think this may be an issue on your computer??? My Windows 11 opens the preferences location just fine. It also remembers the width of the book bowser pane....sorta. If I close Sigil after making the Pane half of the window, then it reverts to a "max-width" or a percentage of the window. If I make the pane much smaller - its minimum width - Sigil will re-open to the minimum width. It also remembers any size in-between minimum and "maximum".
Have you tried manually setting the preferences location somewhere else, and then setting it back?? That might help... Otherwise I'll let the Sigil maintainers troubleshoot this with you. Windows 11 Pro N version: 25H2 Sigil: 2.7.0 QT: 6.9.3 |
|
|
|
|
|
#4 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
|
|
|
|
|
#5 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,277
Karma: 6565382
Join Date: Nov 2009
Device: many
|
And according to Qt's QStandardPaths docs, AppLocalData value defined as:
Returns the local settings path on the Windows operating system. On all other platforms, it returns the same value as AppDataLocation. And here are the templates for the AppLocalDataLocation on Windows: "C:/Users/<USER>/AppData/Local/<APPNAME>", "C:/ProgramData/<APPNAME>", "<APPDIR>", "<APPDIR>/data", "<APPDIR>/data/<APPNAME>" And the Windows specific code and calls that determine these can be found here: https://github.com/qt/qtbase/blob/20...dpaths_win.cpp So check what environment vars you have set? Also check permissions to verify that the location / path is actually writeable by the user. This code literally has not changed in years in Sigil so it is most likely an issue on your specific machine. Last edited by KevinH; 02-04-2026 at 04:22 PM. |
|
|
|
| Advert | |
|
|
|
|
#6 | |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,781
Karma: 24088595
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
AFAIK, the default preferences folder is: Code:
%localappdata%\sigil-ebook\sigil Code:
C:\Users\<user>\AppData\Local\sigil-ebook\sigil
Also what happens if you press WIN+R, paste the following path into the Run box and hit Enter: Code:
%localappdata%\sigil-ebook\sigil |
|
|
|
|
|
|
#7 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 326
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
Quote:
![]() I confirm that my preferences location on the Windows box is: C:\Users\pnj\AppData\Local\sigil-ebook\sigil It seems that the problems are down to my machine. It was a W10 box which I upgraded to W11 last summer. I only use it occasionally when I need a couple of applications which don't run well on linux - and when I'm in W11, I'll sometimes use Sigil (which happened today). I've never, as far as I can recall, ever set any environment variables. When I press WIN+R & paste the following Code:
%localappdata%\sigil-ebook\sigil So do I conclude that there is something wrong with my Sigil installation? Afterthought: I recall sometime ago that when I tried to update KDP Previewer3, I got a message saying the upgrade wouldn't work with some mention, IIRC, of inability to find something related to QT. My fix then was simply to delete the old Previewer and make a new installation of the latest version. Last edited by philja; 02-04-2026 at 05:42 PM. |
|
|
|
|
|
|
#8 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,993
Karma: 150266009
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Do you have these problems if you run Sigil in Safe Mode?
|
|
|
|
|
|
#9 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 326
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
|
|
|
|
|
|
#10 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 326
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
I deleted Sigil, downloaded and installed a new 2.7.0 and the two problems are still there. The situation has evolved, though - for the worse, I fear.
Running %localappdata%\sigil-ebook\sigil in Win-R now fails to open the correct location and just opens Desktop in File Explorer - same as the Preferences Location button in Sigil does. Otherwise, Sigil works fine using my display variations in qt_styles.qss file and my templates. Off to bed now - see how it develops tomorrow. |
|
|
|
|
|
#11 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,277
Karma: 6565382
Join Date: Nov 2009
Device: many
|
My guess is when you installed Windows 11 it got set up with a Microsoft Cloud or network based user account. Windows is making it harder and harder to set up a normal user account that is not tied to the cloud.
I do not think reinstalling Sigil will make any differences. You should manually cd to the expected paths and verify that you have write permissions at that location and its parent. %localappdata% is effectively a system defined environment variable for each user. Last edited by KevinH; 02-04-2026 at 07:17 PM. |
|
|
|
|
|
#12 |
|
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 29,063
Karma: 211348980
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Using regedit, check the contents of HKEY_CURRENT_USER\Software\Microsoft\Windows\Curre ntVersion\Explorer\User Shell Folders
The Local AppData folder should be set to %USERPROFILE%\AppData\Local |
|
|
|
|
|
#13 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 81,993
Karma: 150266009
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
|
|
|
|
|
#14 | |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() Posts: 326
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
|
Quote:
echo %localappdata% returns C:\Users\<NAME>\AppData\Local echo %USERPROFILE% returns C:\Users\<NAME> All this seems ok but I can only get to the Preferences Location by manual navigation. Hovering over the button in Preferences does show the correct path to the location, but actually clicking the button takes me to Desktop in File Explorer. I noticed that some application icons in the Start Menu have a right-click option of 'Open File Location'. I tried that, and it too lands me on Desktop in Explorer after briefly flashing up another page. I tried using Windows System File Checker to repair missing or corrupted files, but it found no fault. Sadly, though, it has screwed up OBS and Elgato Streamdeck settings, which I'll have to reconstruct. So, I'm pretty hacked off with Windows at the moment and wish I'd never noticed the difficulty in getting to the Preferences location. Unless someone has a real easy killer solution, I'll live with the minor aggravations. |
|
|
|
|
|
|
#15 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,277
Karma: 6565382
Join Date: Nov 2009
Device: many
|
You can of course set a Windows Environment Variable (SIGIL_PREFS_DIR) to force Sigil to use the exact path you want. You should not need to do this but it will work as all code in Sigil uses that DefinePrefs routine I posted for you earlier to build the proper path to Preferences.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Unable to launch Calibre under Windows11/Surface Pro 7 | Crisppr.cas9 | Calibre | 4 | 04-02-2022 05:31 AM |
| Sigil Problems | Poopsey | Sigil | 33 | 02-06-2020 10:43 AM |
| text problems Sigil? | ralphiedee | Sigil | 14 | 08-09-2012 05:30 AM |
| Problems downloading Sigil | GMFpubs | Sigil | 7 | 11-19-2011 02:40 AM |
| Problems with Sigil... | kevinp | Sigil | 4 | 05-09-2010 01:33 PM |