![]() |
#16 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Help me out. I've been looking for where the file open/select dialog actually gets launched when using the "Other Files" button in Dialogs/SelectFiles.cpp, but I keep coming up with nothing.
|
![]() |
![]() |
![]() |
#17 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,760
Karma: 5706256
Join Date: Nov 2009
Device: many
|
It is a maze indeed. I think I tracked it down to BookBrowser->AddExisting(true) line from MainWindow.
See here: https://github.com/Sigil-Ebook/Sigil...769C13-L769C24 Last edited by KevinH; 06-05-2025 at 03:37 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#18 |
Connoisseur
![]() Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
|
Deleted
Last edited by mrprobert; 06-09-2025 at 05:10 PM. |
![]() |
![]() |
![]() |
#19 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,760
Karma: 5706256
Join Date: Nov 2009
Device: many
|
This is kind of expected behaviour. .DS_Store files are MacOS folder metadata files. They are meant to be hidden from MacOS users. They are created inside every folder a user on MacOS opens in the finder for any length of time.
My guess is a MacOS user used FolderIn and FolderOut to work on an epub with tools outside Sigil or to add it to a github version control system. So it accidentally got scooped up and pulled in by FolderIn. It is always safe to delete it from an epub (and even safe to always delete it on MacOS) but because it starts with a period, most folder file iterators will ignore it. The one for plugins sees it but Sigil or the plugin does not properly delete it. I will look into why when things slow down a bit. |
![]() |
![]() |
![]() |
#20 |
Connoisseur
![]() Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
|
Deleted
Last edited by mrprobert; 06-09-2025 at 05:12 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 839
Karma: 2657572
Join Date: Jan 2017
Location: Poland
Device: Various
|
For me, the DeleteUnmanifestedFiles plugin deletes both files.
|
![]() |
![]() |
![]() |
#22 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
Regardless, I'll see if using non-native there will change things on Windows. |
|
![]() |
![]() |
![]() |
#23 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
#24 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,168
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
I do get the error popup and hide details/close buttons on multiple sites when I tried inserting an image directly from an URL. OTOH, I'm fairly certain that directly inserting a random image in a blank line in CodeView is definitely not going to work. Even trying to add the file to the Images virtual directory does not work with the identical error message.
I could copy/paste the URL into with wrapping code such as <p><img alt="random_image" src="https://dcdn.disk.zipjpg.com/free/342236f2a840108e64c42e14be935b56_2_-1_art.jpg"/></p> and it displayed in Preview and elsewhere after I deleted "?x-oss-process=image/format,jpg&big.jpg" from the end of the URL. But I definitely believe using remote URLs in an ebook that may be read on a device with no Internet connectivity is Not A Good Idea. Last edited by DNSB; 06-05-2025 at 07:32 PM. |
![]() |
![]() |
![]() |
#25 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,760
Karma: 5706256
Join Date: Nov 2009
Device: many
|
Unless I am mistaken, I think it is a bug in the Native File Dialog on Windows. If we had another Qt app that used the native dialog and gave it a url, it would be interesting to see it crashes that app too. Also it would be interesting to see if a non-qt app like Notepad, and try to hand type in a url to the native Windows dialog and see if it crashes that app (ie. is it a Windows bug, or a Qt bug).
Last edited by KevinH; 06-05-2025 at 08:03 PM. |
![]() |
![]() |
![]() |
#26 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
So does Notepad++. (It opens the files as text files.) |
|
![]() |
![]() |
![]() |
#27 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,720
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
AFAIK calibre uses Windows native file dialogues, unless you tell it otherwise via its CALIBRE_NO_NATIVE_FILEDIALOGS EnvVar directive. Another possibility is qBittorrent.
BR |
![]() |
![]() |
![]() |
#28 | |
Connoisseur
![]() Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
|
Quote:
I guess Krita is telling me to go fish. |
|
![]() |
![]() |
![]() |
#29 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
|
|
![]() |
![]() |
![]() |
#30 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,760
Karma: 5706256
Join Date: Nov 2009
Device: many
|
Or there is a Qt bug in Qt6 since it is handled correctly in PyQt5 which uses the older Qt5.
Thanks! |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
error from Sigil when loading particular epub file | JohnNC | Sigil | 15 | 08-08-2017 04:52 AM |
Sigil crashes when trying to add existing file | holdit | Sigil | 18 | 07-16-2013 06:59 AM |
Sigil Crashes on Win7 v0.6.2 When loading image | lissie | Sigil | 7 | 01-24-2013 05:05 AM |
Sigil file crashes Sony software | Quiss | Sigil | 12 | 08-14-2012 08:04 PM |