Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 01:36 AM   #10096
John Maverick
Connoisseur
John Maverick began at the beginning.
 
Posts: 56
Karma: 10
Join Date: Oct 2018
Device: none
Quote:
Originally Posted by JimmXinu View Post
Are you sufficiently python savvy to try testing it with a basic script? Or investigating if it's a per-program security thing?
While I'm a programmer, I never used python.

For whatever is worth, running this in the command line open the browser:

Code:
python3 -m webbrowser -t "https://www.python.org"
But Calibre comes with it's own python installed, right?

I also tried to run the following python script with calibre-debug to see what happens:

Code:
import webbrowser

url="https://www.python.org"

print('Trying opening this url: '+url)
webbrowser.open(url)
The browser isn't opened, only the print is shown. But I don't know if the issue here is what it's happening with FFF, or something that is wrong in my script.

Last edited by John Maverick; Today at 01:41 AM.
John Maverick is online now   Reply With Quote
Old Today, 11:30 AM   #10097
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,597
Karma: 4600391
Join Date: Dec 2011
Location: Midwest USA
Device: Kindle Paperwhite(10th)
New Test Version Posted

2024-11-17
- Call Calibre's safe_open_url for open_pages_in_browser


Perfect--that's exactly the sort of testing I meant.

This shows that it's something to do with running from Calibre's python, not python in general or FFF specifically.

Give this test version a try.

I blame general 'I'm tired' reasons for not realizing yesterday that I don't need to duplicate Calibre's code, I can just call it.
JimmXinu is offline   Reply With Quote
Reply

Tags
fanfiction


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] KindleUnpack - The Plugin DiapDealer Plugins 495 10-19-2024 07:06 AM
[GUI Plugin] Open With kiwidude Plugins 403 04-01-2024 09:39 AM
[GUI Plugin] Marvin XD Philantrop Plugins 126 01-29-2017 01:48 PM
[GUI Plugin] KiNotes -axel- Plugins 0 07-14-2013 07:39 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM


All times are GMT -4. The time now is 01:15 PM.


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