View Single Post
Old 04-27-2023, 04:41 AM   #3
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,621
Karma: 29710338
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kovidgoyal View Post
It works exactly the same as the link to open the book folder, which has been the same for donkey's years. Neither of them use URLs at all on windows. They use paths, passed to a function similar to ShellExecute.
Here's my 'test case":

Click image for larger version

Name:	Screenshot 2023-04-27 180209.jpg
Views:	156
Size:	100.2 KB
ID:	201314

Copy all the above links produced this:

Code:
Tome - Writer

calibre://show-book/_hex_-54657374/826
calibre://book-details/_hex_-54657374/826
file:///D:/Calibre/Libraries/Test/Writer/Tome (826)/data
calibre://view-book/_hex_-54657374/826/EPUB
calibre://view-book/_hex_-54657374/826/PDF
I can put the first, second, fourth, and fifth links into a Word document, a OneNote section, my decrepit sticky note gadget and they work… the third link doesn't

If I copy the URL from from the Data item in the Links custom column (which was created by the new Folder button) file:///D:/Calibre/Libraries/Test/Writer/Tome%20(826)/data I can use it in the same manner as the other 'Links'.

BR
BetterRed is offline   Reply With Quote