From Amarok Wiki
Not sure if this is the place to discuss this. If not, tell me and I will move this somewhere else.
I have a problem with registering context menu entries. I just installed the 911tabs script and after running it I do not have a new command on the context menu.
Also, when I tried adding a menu from bash:
$ dcop amarok script addCustomMenuItem "My" "Test"
I get this error, or message:
object not accessible
Are these related? Any hints?
I am doing this while playing music. The "play button" lights up when running the 911-script, so *something* works.
/Mathias
Sessionmanager Hint
Hi there, this documentation tells me to use the following code to tell the sessionmanager to not start my script on a restart:
class MyScript (QApplication):
def saveState(self):
# script is started by amarok, not by KDE's session manager
sessionmanager.setRestartHint(QSessionManager.RestartNever)
I though get an error and have to add the "sessionmanager" var to the method definition, so that only the following works for me:
class MyScript (QApplication):
def saveState(self, sessionmanager):
# script is started by amarok, not by KDE's session manager
sessionmanager.setRestartHint(QSessionManager.RestartNever)
Is that a Qt3/4 issue or just an error? --Chris 14:02, 28 November 2007 (UTC)