Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-05-2025, 01:59 PM   #16
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
So we could try using a non-native file dialog box here on Windows as this testing of the file happens inside the qfiledialog and can not be screened for in advance by Sigil code.
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.
DiapDealer is online now   Reply With Quote
Old 06-05-2025, 02:14 PM   #17
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: 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.
KevinH is offline   Reply With Quote
Advert
Old 06-05-2025, 03:23 PM   #18
mrprobert
Connoisseur
mrprobert began at the beginning.
 
Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
Deleted

Last edited by mrprobert; 06-09-2025 at 05:10 PM.
mrprobert is offline   Reply With Quote
Old 06-05-2025, 03:35 PM   #19
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: 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.
KevinH is offline   Reply With Quote
Old 06-05-2025, 03:50 PM   #20
mrprobert
Connoisseur
mrprobert began at the beginning.
 
Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
Deleted

Last edited by mrprobert; 06-09-2025 at 05:12 PM.
mrprobert is offline   Reply With Quote
Advert
Old 06-05-2025, 03:53 PM   #21
BeckyEbook
Guru
BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.BeckyEbook ought to be getting tired of karma fortunes by now.
 
BeckyEbook's Avatar
 
Posts: 839
Karma: 2657572
Join Date: Jan 2017
Location: Poland
Device: Various
For me, the DeleteUnmanifestedFiles plugin deletes both files.
Attached Thumbnails
Click image for larger version

Name:	ds_store_deleted.png
Views:	32
Size:	12.1 KB
ID:	216019  
BeckyEbook is online now   Reply With Quote
Old 06-05-2025, 04:09 PM   #22
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,569
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
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
Got it. Thanks! So it looks like both Windows and Linux are still using native file dialogs there, but only Windows crashes when encountering the url. Unless native file dialogs are being disabled on Linux in some other way.

Regardless, I'll see if using non-native there will change things on Windows.
DiapDealer is online now   Reply With Quote
Old 06-05-2025, 04:40 PM   #23
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by mrprobert View Post
I then ran DeleteUnmanifestedFiles but only some.txt was deleted.
By default my very simple plugin ignored all files in META-INF because none of the files in there need to be manifested.

Obviously, BeckyEbook created a much better version.
Doitsu is offline   Reply With Quote
Old 06-05-2025, 07:30 PM   #24
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
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.
DNSB is offline   Reply With Quote
Old 06-05-2025, 07:50 PM   #25
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: 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.
KevinH is offline   Reply With Quote
Old 06-05-2025, 11:17 PM   #26
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by KevinH View Post
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).
MSPaint, which is obviously not a QT app, opens link1 and link2 without problems.

So does Notepad++. (It opens the files as text files.)
Doitsu is offline   Reply With Quote
Old 06-05-2025, 11:45 PM   #27
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,718
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
BetterRed is offline   Reply With Quote
Old 06-06-2025, 12:42 AM   #28
mrprobert
Connoisseur
mrprobert began at the beginning.
 
Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
Quote:
Originally Posted by KevinH View Post
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).
I think Krita uses PyQt5 and Windows native file dialogs. Here's what I get on open:

Click image for larger version

Name:	Krita.jpg
Views:	36
Size:	16.7 KB
ID:	216028

I guess Krita is telling me to go fish.
mrprobert is offline   Reply With Quote
Old 06-06-2025, 02:40 AM   #29
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by mrprobert View Post
I think Krita uses PyQt5 and Windows native file dialogs. Here's what I get on open:

Attachment 216028

I guess Krita is telling me to go fish.
Maybe Krita doesn't support opening remote image files at all.
Doitsu is offline   Reply With Quote
Old 06-06-2025, 04:28 AM   #30
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: 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!
KevinH is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 07:16 PM.


MobileRead.com is a privately owned, operated and funded community.