Image 01


Alfons Name

Amarok 1.x Scripts by maacruz 274 comments

i found kde with kdialig progressbar and dcop to be no longer working in the old way - at least on intrepid - when scanning the entire collection.

The expected result is replaygain to open a kdialog progress window but the actual result is a crash because some index do no longer exist.

The solution is the change some lines in the file replacing the ProgresDialog class to use qdbus.

class ProgressDialog:
def __init__(self,steps):
self.dcopref=command_getoutput('kdialog --title "Amarok replaygain script" --progressbar "'+_('Scanning...').encode(LC,'replace')+'" ' +str(steps))
def setprogress(self,step):
command_getoutput('qdbus '+self.dcopref+' org.freedesktop.DBus.Properties.Set org.kde.kdialog.ProgressDialog value '+str(step))
def close(self):
command_getoutput('qdbus '+self.dcopref+' org.kde.kdialog.ProgressDialog.close')

The information was acquired from

I've tested it locally and it works.
- Feb 23 2009
Amarok libnotify

Amarok 1.x Scripts by dertony 1 comment

You might want to add

if [ "x$duration" = "x" ]; then duration=5000; fi

into between "duration=" and "notify=" because in my setup, there is no such key 'Osd Duration' in amarokrc (perhaps because i did not change it from the default one, which is 5000ms .)

You find this file in ~/.kde/share/apps/amarok/scripts/libnotify/
once you installed it. - Apr 14 2008