![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
Sigil on Linux: "A plugin by that name does not exist"
Here's an interesting tidbit. I decided to build 0.9.7 on a Kubuntu 14.04.1 system using the "Building_on_cutting-edge-linux.md" instructions. I installed Qt5.5.1 from the repos, including all the required packages per the instructions.
Sigil built and installed fine (and thanks for getting rid of those warnings!). However when I tried to run the test plugin, I got the same "a plugin by that name does not exist" error as discussed on this old thread for sigil 0.9.5 (from repo). As before, if the plugin is launched via the plugin buttons, it runs (and reports no error). When I rebuilt Sigil using Qt 5.4.1 from the official Qt website (which I've used for previous Sigil versions) the problem went away. I don't know if anyone ever got to the bottom of what was going on in the older case, but maybe the problem was in the Qt package(s), not the Sigil package. Albert Spoiler:
Edited to add: KDE desktop, of course. Last edited by st_albert; 11-04-2016 at 07:41 PM. |
![]() |
![]() |
![]() |
#2 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,459
Karma: 203840626
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
|
|
![]() |
![]() |
![]() |
#3 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 697
Karma: 150000
Join Date: Feb 2010
Device: none
|
Quote:
ETA: Yep, it does work. So there's nothing intrinsically wrong with Qt 5.5.1 with respect to Sigil. It's probably beating a dead horse, but perhaps I'll install the extra -dev packages and build it per the "cutting edge linux" method (i.e. with all the repo-built Qt components) and if it has the bug, that'll be interesting. Prediction: I bet it does. ... and... yes, the same error occurs. Therefore I conclude that when Sigil is built with the repo-supplied Qt 5.5.1 the bug will appear, but if built with Qt 5.5.1 installed from the Qt website, it does not exhibit that bug. BTW, even with the buggy sigil, I can still execute the plugin via the plugin button. Same situation as in the older thread mentioned above. Last edited by st_albert; 11-04-2016 at 10:13 PM. Reason: further results |
|
![]() |
![]() |
![]() |
#4 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,694
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
@st_albert: I built Sigil using the cutting edge instructions on my Antergos Arch Linux system and ended up with Qt 5.7.0, which works fine.
I.e., you might even be able to use Qt 5.7.0 from the Qt website. Apparently you can't use Qt 5.7.0 from the Qt website. For more information see DiapDealer's post. Last edited by Doitsu; 11-05-2016 at 07:52 AM. |
![]() |
![]() |
![]() |
#5 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,459
Karma: 203840626
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
I'll have to take look at Sigil's code and see how Qt is involved with launching the plugin via the menu, and how it differs from launching via the plugin button. It almost has to be a QString path getting botched somehow with the former. If something in Sigil can be changed to work with the repo versions of 5.5.1 (and I have to believe it can, since assigning the plugin to a button still works in the repo version of 5.5.1), then I'd like to find it. They could stay parked on 5.5.1 for quite a while. |
|
![]() |
![]() |
![]() |
#7 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,459
Karma: 203840626
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#8 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,459
Karma: 203840626
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I moved these posts from the Sigil 0.9.7 release page, as I think I've had some success in tracking the problem down. I hope you don't mind.
This actually appears to be a KDE bug affecting Qt5 applications. It doesn't manifest when using the stock Qt because the KDE Qt plugins are not included with those versions (only with the repo-supplied Qt on KDE flavors). I can also verify that it doesn't occur when building with the repo-supplied versions of Qt on a stock Xenial (Gnome/Unity) Ubuntu installation. Particularly relevant from that bug report is the last part of comment #6: Quote:
The three assignable plugin buttons get the plugin name directly from the SettingsStore pluginMap -- which is why it doesn't suffer from the same problem. I just need to get a KDE VM up and running to see if I can verify the issue (and a solution). The toolTip() property of QAction is purported to default to the text assigned (if not explicitly set or changed) and doesn't seem to suffer from the accelerator injection that happens with text() on KDE. I can verify that using toolTip() still works great on non-KDE versions of Linux, so maybe the fix is as simple as that. Anyway ... thanks for bringing it back to my attention. Last edited by DiapDealer; 11-06-2016 at 01:24 PM. |
|
![]() |
![]() |
![]() |
#9 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,459
Karma: 203840626
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I confirmed this Qt5 KDE plugin bug on Kubuntu 16.04
QAction*->text() is returning "&testplugin" for the name when run in KDE. The accelerator ampersand doesn't belong there (it's not there on other Desktop Environments). That's why the plugin can't be found via the menu. Also confirmed that QAction*->toolTip() returns "testplugin" (which is proper and allows the plugin to be launched via the menu like with other DEs). Not sure exactly what the best solution is right now, but we should be able to have a fix workaround for this KDE issue in the next release. Last edited by DiapDealer; 11-07-2016 at 08:26 AM. |
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,459
Karma: 203840626
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
A workaround for this issue has been committed to Sigil's master branch on Github.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
"The Second Book of Memorable First Sentences From Books That Don't Exist" | Dr. Drib | Writers' Corner | 220 | 05-12-2015 05:12 PM |
"--right2left" exist? | Akihiro | Conversion | 3 | 03-09-2015 10:25 PM |
A warning for Linux users: slow "Add Books", "Unknown" title and Author | rolgiati | Library Management | 8 | 07-24-2013 04:36 PM |
Installing Sigil. "Associate ebooks with Sigil" | automa | Sigil | 2 | 06-07-2013 08:29 AM |