View Single Post
Old 06-07-2025, 09:12 AM   #50
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,893
Karma: 6120478
Join Date: Nov 2009
Device: many
That is interesting ... great detective work! So the more correct approach is probably to detect urls being returned on all platforms. Given a colon is not an allowed in a file path in MacOS it would be easy to screen it out on MacOS. But given Windows filepaths use colons after drive letters, and custom url schemes are legal (calibre, sigil, http, https, ftp, file, etc, etc, then a simple screen would probably not be easy. Maybe as BeckyEbook suggested we use Utility::IsFileReadable and see if that returns without crashing, but it may use QFileInfo too.

Which way do you want to go?
KevinH is offline   Reply With Quote