View Single Post
Old 09-20-2023, 04:57 PM   #178
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,737
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by philja View Post
I posted a query on github.com/flathub/com.sigil_ebook.Sigil/issues/23 asking whether the flatpak version was not allowing the plugin to use xclip and xsel.
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.

Here's the code of the CCTest plugin:
Spoiler:
Code:
#!/usr/bin/env python
 # -*- coding: utf-8 -*-
import sys
from plugin_utils import PluginApplication

def run(bk):
    app = PluginApplication(sys.argv, bk)
    app.clipboard().setText('Lorem ipsum dolor sit amet, consectetur adipiscing elit')
    print('Text copied to the clipboard')

    return 0

def main():
    print('I reached main when I should not have\n')
    return -1

if __name__ == "__main__":
    sys.exit(main())
Attached Files
File Type: zip CCTest.zip (6.6 KB, 622 views)
Doitsu is offline   Reply With Quote