View Single Post
Old 09-22-2023, 11:51 AM   #179
philja
Addict
philja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enoughphilja will become famous soon enough
 
Posts: 270
Karma: 516
Join Date: Nov 2015
Location: Europe EEC
Device: Kindle Fire HD6 & HD8
Quote:
Originally Posted by Doitsu View Post
It might be possible to change to plugin code to use the built-in Qt6 library for all platforms.
Install the CCTest edit plugin and run it. It should copy 'Lorem ipsum dolor sit amet, consectetur adipiscing elit' to the clipboard. If the plugin works on your Linux machine, it'll be easy to update the plugin code of the SVG wrapper plugin.
I installed and ran CCTest edit plugin and it responded with first:
Code:
QT: session management error: could not open network socket
and then a second or so later:
Code:
Status: success

Text copied to the clipboard
I tried pasting into Sigil but nothing appeared. When I looked at my system clipboard listing and history, there was no 'Lorem ipsum ....' to be seen.

What do you make of that? Was it success or did the CCTest only think it was?

I had a quick look inside CCTests's plugins_utils.py and found a DEBUG reference set at DEBUG = 0 so I tried setting that to 1 and ran it again. This time the response gave two pages. The first I couldn't copy but essentially it contained the line about not connecting to a socket. The second page said :
Code:
Status: success

QtWebEngine PyQt5 Python bindings found.
plugin_utilities is using PyQt5
Sigil Qt:  5.15.10
Sigil Qt major version:  5
Python is Bundled: False
Qt translation dir: /usr/translations
Looking for qtbase_en in /usr/translations
Qt Base Translator succesfully installed: False
Looking for cctest_en in /home/pnj/.var/app/com.sigil_ebook.Sigil/data/sigil-ebook/sigil/plugins/CCTest/translations
Plugin Translator succesfully installed: False
Noto Sans,12,-1,5,50,0,0,0,0,0,Regular
Font Weight: 50
Noto Sans,12,-1,5,50,0,0,0,0,0,Regular
Text copied to the clipboard
philja is offline   Reply With Quote