View Single Post
Old 05-22-2016, 05:26 PM   #33
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
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/
eschwartz is offline   Reply With Quote