05-22-2016, 08:41 AM | #31 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
I already told you how to install the command-line tools.
And you said you have a way to create associations for an executable path. To open a particular ebook: Code:
/usr/bin/ebook-viewer $ebook_file |
05-22-2016, 04:31 PM | #32 |
Addict
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
@eschwartz
I'm sorry, I don't understand if your "auto updater" on Github will solve the task I have. Is there anyone who tried the auto updater from Eli on OS X and was able to create an association? Open a particular ebook is not my task. |
05-22-2016, 05:26 PM | #33 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Again, once you create the symlinks, you can create a file association that merely passes the selected book as a parameter to `/usr/bin/ebook-viewer`. You did say you know how to create an arbitrary association to a command-line executable -- well, that will need to use the symlink, not the *.app
My updater includes code to create the symlinks, but you could also run (as root) the command that the updater would run: Code:
ln -sf /Applications/calibre.app/Contents/console.app/Contents/MacOS/* /usr/bin/ |
05-22-2016, 06:26 PM | #34 |
Addict
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
Thanks for your hints.
I will try to find out, how to login as "root". To be honest: I have no experience at all with the terminal. And therefor it's difficult for me to understand and to control what really happens, when I perform a command. Do I have to perfom that command each time, when a new calibre version has been installed? I hope, that Kovid will offer a separate standalone app "ebook viewer" in the future. That would be great. |
05-22-2016, 06:39 PM | #35 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Just the once is all you need to create a symlink.
I don't know if Kovid *can* offer a standalone app. I assume if it were possible he'd already have done it. I think this may just be a limitation of Apple's policy about standalone, self-contained applications. How do you tell the OS that secret executables hidden inside the package can also run GUI programs? |
05-22-2016, 07:01 PM | #36 |
Addict
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
I tried to find out how to "login as root" on OS X.
Many results. Seems to be complicated because of the security policies of Apple. I nearly don't understand anything of the hints. May be someone reads this thread who is an experiences OS X user and likes to explain the steps which solve the task. Thanks for all your hints, Eli. Sorry, that I'm not able to follow the explanations about the terminal commands. |
05-22-2016, 07:09 PM | #37 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
It shouldn't be that hard... just begin the command with "sudo" to temporarily become root.
e.g. Code:
sudo ln -sf /Applications/calibre.app/Contents/console.app/Contents/MacOS/* /usr/bin/ |
05-23-2016, 12:19 AM | #38 |
creator of calibre
Posts: 43,842
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Simply launch the viewer from inside calibre, then right click the viewer dock icon and select keep in dock. That will give you a way to launch the viewer without starting the rest of calibre. As for file associations -- I have made a change that will allow you to associate /Applications/calibre.app/Contents/ebook-viewer.app with files in the next release.
|
05-23-2016, 02:55 AM | #39 |
Addict
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
@Eli
It seem's to be harder to solve than just a "sudo". With sudo I just get a "operation not permitted". I suppose, the reason is the gatekeeper function of OS X. As I posted before, there are many results, when you search for "login as root". Seem to be complicated to add such symlinks. @Kovid Thanks a lot! I'm looking forward to that release. |
05-23-2016, 11:56 PM | #40 |
Ex-Helpdesk Junkie
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
|
Oh, right -- Apple did their weird System Integrity Protection thing, which you will have to disable or else install the symlinks to /usr/local/bin/ instead of /usr/bin/
|
06-24-2016, 04:03 AM | #41 |
Addict
Posts: 264
Karma: 9246
Join Date: Feb 2010
Location: Berlin, Germany
Device: Kobo H20, iPhone 6+, Macbook Pro
|
|
06-26-2018, 08:24 PM | #42 |
Junior Member
Posts: 1
Karma: 10
Join Date: Jun 2018
Device: Mac Pro, Galaxy Tab4
|
Change the app to open epubs
https://www.laptopmag.com/articles/h...plications-mac
This link solved my issue getting epubs to open with the Calibre ebook viewer. Mac OX High Sierra 10.13 Calibre v2.61 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[old-topic]ebook-viewer: Open source, crossplatform viewer for EPUB, LIT, MOBI, etc | kovidgoyal | Calibre | 68 | 05-30-2011 08:46 PM |
# user css for viewer.py/ ebook-viewer/ prs-650 | tscamera | Calibre | 0 | 01-02-2011 06:28 PM |
Calibre Ebook Viewer Printing | tom95521 | Calibre | 2 | 04-17-2010 01:28 PM |
Calibre Not Opening | Amalthia | Calibre | 5 | 03-03-2009 07:35 PM |
LRF viewer not opening | mazzeltjes | Calibre | 4 | 08-04-2008 03:57 PM |