Image 01
profile-image

netral

net ral , Switzerland
BlueamaroK

Amarok 1.x Scripts by khertz 65 comments

Helo (World)

Because of not installing the kde manger at all, kdialog is not installed also.

I tried to eliminate kdialog from this script, which was not so hard at all.

If you want try that, so change your blueamarok like i did:

instead of exec kdialog i did a 'hardcoded' setting.
scripts stays here:

~/.kde/share/apps/amarok/scripts/blueamarok/

set outfile [ open $CONFIGFILE w ]
and
set CANAL [ open $DISPOSITIVO r+ ]

so no more need for kdialog..

here are the two passages:

proc configurar {} {
global CONFIGFILE
global DISPOSITIVO
if { ! [ info exists DISPOSITIVO ] || [ string equal "" $DISPOSITIVO ] } {
set DISPOSITIVO "/dev/rfcomm0"
}
set outfile [ open $CONFIGFILE w ]
puts $outfile $DISPOSITIVO
close $outfile
return 0
}



and:
proc Conectar {} {
global DISPOSITIVO
global CANAL

set CANAL [ open $DISPOSITIVO r+ ]

fconfigure $CANAL -buffering line
fileevent $CANAL readable "Leer"
}


rest stays the same..

yours,
netral
- Dec 09 2006