View Single Post
Old 06-07-2025, 10:09 AM   #54
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
Well the KDE Plasma file dialog only ruled out non-file scheme urls so it might let a file: url pass through.

Sigil code was generally not designed to accept a url from open file dialogs. It wants file paths or in this case a list of paths not a list of urls.

So I say we just check if url of any type (but be careful of relative urls) and punt if so.
So maybe a simple file existance or is readable test here is the safest approach.

Last edited by KevinH; 06-07-2025 at 10:12 AM.
KevinH is online now   Reply With Quote