This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[3.2] KTScriptingPlugin.scriptsDir() is wrong

Tags: None
(comma "," separated)
non7top
Registered Member
Posts
54
Karma
0
OS
I have a couple of my own plugins which are located in /home/non7top/.kde4.2/share/apps/ktorrent/scripts/ and also three default ones in /usr/kde/4.2/share/apps/ktorrent/scripts. And for those plugins which are in /usr configure button doesn't work. Logs show this
Code: Select all
Tue Mar 24 00:05:19 2009: Qt Debug: ktorrent(16041) Kross::FormModule::createWidgetFromUIFile: "Kross::FormModule::createWidgetFromUIFile: There exists no such file "/home/non7top/.kde4.2/share/apps/ktorrent/scripts/email_notifications/emailconfig.ui""
Tue Mar 24 00:05:19 2009: Qt Debug: Kross: "PythonInterpreter::extractException:
  File "email_notifications.py", line 162, in configure
    notifier.configure()

  File "email_notifications.py", line 106, in configure
    widget["username"].text = self.mail_user
"
Tue Mar 24 00:05:19 2009: Qt Warning: Kross: "Error error='NoneType' object is unsubscriptable lineno=106 trace=
  File "email_notifications.py", line 162, in configure
    notifier.configure()

  File "email_notifications.py", line 106, in configure
    widget["username"].text = self.mail_user
"

Obviously KTScriptingPlugin.scriptsDir() points to location in my home dir and this breaks default plugins. The better way would be to have sthg like KTScriptingPlugin.scriptDir() which would contain the full path to the plugin dir.
George
Moderator
Posts
5421
Karma
1

Tue Mar 24, 2009 2:19 pm
You are right, I will add a scriptDir function to which you can add the name of a script as parameter.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], q.ignora, watchstar