05-13-2021, 10:31 AM | #1 |
Connoisseur
Posts: 79
Karma: 24858
Join Date: Feb 2020
Device: none
|
Windows Shortcut to open a book using URL?
Is there a way to create a Windows shortcut that can open a book in Calibre Viewer by using its Calibre URL? When I paste the URL into a shortcut, it asks me which app/browser I want to use to open it.
|
05-13-2021, 10:53 AM | #2 |
Well trained by Cats
Posts: 29,966
Karma: 55705602
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
You could make the system default FILE HANDLER ebook-viewer.exe for the file-type (IMHO avoid standard type that normally want a different handler: HTML, PDF)
or use the CLI ( remember to quote the path argument) Code:
https://manual.calibre-ebook.com/generated/en/ebook-viewer.html |
Advert | |
|
05-13-2021, 07:32 PM | #3 |
null operator (he/him)
Posts: 20,672
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
This will open the selected format in that format's default viewer for a specific book.
You can paste the calibre://view-book link into any app that can handle urls, e.g. a note taking app. Even another book in another calibre library. BR Last edited by BetterRed; 05-13-2021 at 08:10 PM. |
05-14-2021, 09:46 AM | #4 |
Connoisseur
Posts: 79
Karma: 24858
Join Date: Feb 2020
Device: none
|
Thanks, I had already tried all of this. When I open the shortcut, it asks me which app to use.
I selected ebook-viewer.exe and then it opens the viewer with an error Also, I'd prefer not to make ebook-viewer the default handler for .url files, so any other suggestions (perhaps a way of specifying the app as a parameter in the url section of the windows shortcut path?) would be appreciated. |
05-14-2021, 06:42 PM | #5 |
null operator (he/him)
Posts: 20,672
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@nixsee - the default handler for url files is Windows itself, what it does with them is defined by the protocol e.g. http://, ftp://, file://… calibre:// etc
Can you post a screen shot of the Properties of the shortcut you created with the method I posted before, I would expect to see something like this: When that shortcut is clicked Windows sends a message to calibre.exe telling it to: view the EPUB of book 697 in the Test (hex 54 65 73 74) library. If calibre isn't already running Windows will start it. BR Last edited by BetterRed; 05-14-2021 at 07:23 PM. |
Advert | |
|
05-14-2021, 06:51 PM | #6 |
Connoisseur
Posts: 79
Karma: 24858
Join Date: Feb 2020
Device: none
|
Strange, all your extra tabs aside, mine is very different. Windows is recognizing yours as more of a link, whereas mine seems to recognize mine as a link-less "url" file. I'm on Windows 10 build 19043 and calibre 5.17 64bit, if that's helpful.
|
05-14-2021, 07:11 PM | #7 |
null operator (he/him)
Posts: 20,672
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
My bad - I forget what Windows provides and what's my gadgets provide - what's in the Details tab, should be something like:
BR |
05-14-2021, 07:12 PM | #8 |
Connoisseur
Posts: 79
Karma: 24858
Join Date: Feb 2020
Device: none
|
Problem solved. I had to set url files to open with "Internet Browser". A variety of shortcuts that I made to actual websites, other apps etc... all then automatically recognized their app and the icon changed.
Hopefully this will help someone else in the future who might have the same problem. Whether its even a useful thing to do is another question... It'll be more useful if i can figure out how to get it pinned to the taskbar. Last edited by nixsee; 05-14-2021 at 07:19 PM. |
05-14-2021, 07:24 PM | #9 |
Connoisseur
Posts: 79
Karma: 24858
Join Date: Feb 2020
Device: none
|
That problem is solved now as well - when you drag the shortcut to pin to taskbar, the book shortcut gets combined with the existing calibre shortcut. You can access the book one by right clicking.
|
05-14-2021, 07:50 PM | #10 |
null operator (he/him)
Posts: 20,672
Karma: 26966376
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Great, back in the day when they thought MSN and NetBIOS over Frame Relay would run the world the μsoft-brains trust conflated urls and shortcuts and painted themselves into another legacy corner
BR |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
KOReader Open Shortcut and missing ProgressSync | nivekkumar | Kindle Developer's Corner | 16 | 03-01-2020 03:13 PM |
Metadata ID - url links don't open in browser | Amalthia | Calibre | 2 | 01-21-2019 04:33 AM |
Anyone know how to...desktop shortcut to open specific libraries directly | jecilop | Calibre | 15 | 04-01-2018 09:15 PM |
Keyboard Shortcut to Open Sigil | Chris_Snow | Calibre | 10 | 12-18-2016 10:50 PM |
Creating a URL to open another ebook on a kindle | daven11 | Amazon Kindle | 3 | 02-12-2010 08:04 PM |