Quote:
Originally Posted by BetterRed
And where's what happened when I click a 'dead' file:/// link
Code:
calibre 6.14.1 embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.10.1
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: en_AU
Successfully initialized third party plugins: CalibreSpy (1, 0, 91) && Count Pages (1, 12, 1) && Favourites Menu (1, 3, 0) && GetFileName (0, 2, 0) && Job Spy (1, 0, 219) && Modify ePub (1, 8, 1) && Scroll Book Details (1, 0, 2) && View Manager (1, 10, 2)
QPA platform: windows
devicePixelRatio: 1.25
logicalDpi: 96.0 x 96.0
physicalDpi: 98.70815939278937 x 98.85405405405406
ApplicationPaletteChange event ignored
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Initializing db...
[0.16] db initialized
[0.16] Constructing main UI...
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
qt.gui.imageio: libpng warning: iCCP: cHRM chunk does not match sRGB
CalibreSpy: initialization_complete
Job Spy has begun initialization...
author_sort_copy_method >>> default tweaks.py method is: invert
current tweaks['title_series_sorting']: library_order
--->>>apply_title_series_sorting_by_library: libname IS tweaked; new value for: Books is: library_order
title_series_sorting changed FROM: library_order TO: library_order
Calibre, and hence Job Spy, was gracefully shut down last time? False
Last time daemon started: never
Last time daemon failed: never
Total daemon starts inception_to_date: 0
Total daemon failures inception-to-date: 0
qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile
JS: ===>>> change_gui_alternating_row_colors()
Job Spy has finished initialization...
[1.50] main UI initialized...
[1.50] Started up in 1.50 seconds with 5 books
Starting QuickView
current_column per column_map: #blurb
row_number of current book is: 0
new self.last_current_column: #blurb
current_col: 13 lookup/search name: #blurb
current_column: #blurb
MD : regex match: (\_|\*){1}
raw md_match_ratio: 0.038461538461538464
HTML : regex match: href=
HTML : regex match: <a|</a|<a href=
HTML : regex match: <div|</div
HTML : regex match: <p|<p class="description"|</p>
HTML : regex match: <span|</span
raw html_match_ratio: 0.13513513513513514
guessing:
MD: score & weighted ratio: 1 0.028932778932778933
HTML: score & weighted ratio: 5 0.13672326172326174
--->>> best guess: html
#~ Calibre > Preferences > Plugin Tweaks > job_spy_notes_viewer_protocol_default_apps = {'http:': '"C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"'}
#~ Note that path to executable should be in Python path format (i.e., / not \), and Windows paths require double-quotes if there are any spaces in a path.
#~ However, NV will automatically correct the application path for the above as necessary.
event_anchorclicked: PyQt6.QtCore.QUrl('file:///C:/Users/Philip Daniels/Desktop/New Text Document.txt')
url to be opened: file:///C:/Users/Philip Daniels/Desktop/New Text Document.txt
webbrowser.open(url, new=0): file:///C:/Users/Philip Daniels/Desktop/New Text Document.txt
BR
|
And? What is your point? That causes the default .txt file handler app to open the file. The Python 'webbrowser' module does that automatically.
Looks correct to me.