![]() KDE Developer ![]()
|
Hi!
Could it be possible to write Konqueror-Plugins in Ruby or Python? I've found the PluginFactories for these language and Plasma-enhancements implemented in a similar way. Well, I'm not experienced in writing Plugins so my test doesn't work. install.sh:
ruby_konqueror_plugin.desktop:
ruby_konqueror_plugin.rb:
ruby_konqueror_plugin.rc:
Do you see any obvious mistake? Or is it impossible? The User |
![]() Administrator ![]()
|
The following line is missing the underscores I believe:
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() KDE Developer ![]()
|
It still doesn't get loaded.
No errors in .xsession-errors. |
![]() Administrator ![]()
|
Did you run "kbuildsycoca4" after copying the files?
You may also wish to check the desktop file code for one of the C++ plugins. In all likelihood you are missing something essential.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() KDE Developer ![]()
|
|
![]() KDE Developer ![]()
|
When I look at Plasmoids, there are such lines of code:
Is this necessary? |
![]() Administrator ![]()
|
I believe you may need to look into MergeActions, which are part of XMLGUI, since you do not appear to be specifying a merge location in your XMLGUI file.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() KDE Developer ![]()
|
The XMLGUI is loaded from the script and the script isn't loaded. So errors in the XMLGUI can't be the reason.
![]() But it should theoretically be possible? |
![]() Administrator ![]()
|
Theoretically it should be possible. However it may be that Konqueror is not searching for, and is therefore not loading Ruby plugins. I believe the same will apply for System Settings views ( I can't recall doing anything special for Ruby plugins )
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() KDE Developer ![]()
|
When I place the .desktop-file at /usr/share/apps/konqueror/kaprtplugins, the extension is displayed. But the KRubyPluginFactory is not loaded. What could be the reason?
|
![]() Administrator ![]()
|
Unfortunately I do not know much further about loading plugins.
Usually them not loading indicates an issue with the file reference. After ensuring that files are in the correct locations, executable, and have no typos, you may wish to ask on the kde-bindings@kde.org mailing list.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() KDE Developer ![]()
|
I was able to fix it, it was a bug in KParts::Plugin.
Now Ruby- and Python-plugins work. ![]() |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]