Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 05-13-2021, 10:31 AM   #1
nixsee
Connoisseur
nixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notes
 
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.
nixsee is offline   Reply With Quote
Old 05-13-2021, 10:53 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,967
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
theducks is offline   Reply With Quote
Advert
Old 05-13-2021, 07:32 PM   #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: 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.
  1. Copy the book's calibre: protocol format link to the clipboard from the Book Details panel (right click white space), viz:

    Click image for larger version

Name:	Screenshot 2021-05-14 090354.jpg
Views:	113
Size:	39.8 KB
ID:	187108

    You can use a keyboard shortcut of you prefer, placeholders are in Preferences->Shortcuts->Edit Metadata

  2. Create a new shortcut via desktop right click, select New->Shortcut

    Paste the clipboard into the new shortcut popup

    Click image for larger version

Name:	Screenshot 2021-05-14 091034.jpg
Views:	101
Size:	44.9 KB
ID:	187109

  3. Click Next and type a name

    Click image for larger version

Name:	Screenshot 2021-05-14 091209.jpg
Views:	97
Size:	31.9 KB
ID:	187110

  4. Click Finish

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.
BetterRed is offline   Reply With Quote
Old 05-14-2021, 09:46 AM   #4
nixsee
Connoisseur
nixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notes
 
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.

Click image for larger version

Name:	Untitled.png
Views:	100
Size:	23.2 KB
ID:	187129

I selected ebook-viewer.exe and then it opens the viewer with an error

Click image for larger version

Name:	Untitled2.png
Views:	97
Size:	29.5 KB
ID:	187130

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.
nixsee is offline   Reply With Quote
Old 05-14-2021, 06:42 PM   #5
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: 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:

Click image for larger version

Name:	Screenshot 2021-05-15 083112.jpg
Views:	100
Size:	44.6 KB
ID:	187135

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.
BetterRed is offline   Reply With Quote
Advert
Old 05-14-2021, 06:51 PM   #6
nixsee
Connoisseur
nixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notes
 
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.

Click image for larger version

Name:	Untitled.png
Views:	94
Size:	13.9 KB
ID:	187136
nixsee is offline   Reply With Quote
Old 05-14-2021, 07:11 PM   #7
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: 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:

Click image for larger version

Name:	Screenshot 2021-05-15 090728.jpg
Views:	102
Size:	49.9 KB
ID:	187138

BR
BetterRed is offline   Reply With Quote
Old 05-14-2021, 07:12 PM   #8
nixsee
Connoisseur
nixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notes
 
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.

Click image for larger version

Name:	Untitled2.png
Views:	89
Size:	4.3 KB
ID:	187137

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.
nixsee is offline   Reply With Quote
Old 05-14-2021, 07:24 PM   #9
nixsee
Connoisseur
nixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notesnixsee can name that song in three notes
 
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.

Click image for larger version

Name:	Untitled.png
Views:	96
Size:	15.4 KB
ID:	187139
nixsee is offline   Reply With Quote
Old 05-14-2021, 07:50 PM   #10
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: 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
BetterRed is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 06:48 AM.


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