[Kommander-devel] KDE 3.5.5: Kommander problems

Dik Takken D.H.J.Takken at phys.uu.nl
Wed Nov 1 05:02:44 EST 2006


Hi,

I received several bugreports from people trying to run the KDE DVD 
Authoring Wizard on KDE 3.5.5. The 'Add To List' button on the 'Create 
Playlist' page does not add the files to the listview anymore.

I can't test this on my own system yet, because I have not had the 
opportunity to build KDE 3.5.5 yet. All I know is that the wizard works 
perfectly on my KDE 3.5.4 system.

If anyone has some time to look at the problem, please please do so. The 
website of KDE DVD Authoring Wizard is here:

http://dvdauthorwizard.sourceforge.net

The code in the button reads like this:

-----------------------------------------------------------------

@if( @String.length(@NewFiles) == 0)

@exec(kdialog --error "Please select one or multiple files.")

@endif

@Array.clear(NewFileArray)
@Array.fromString(NewFileArray, @NewFiles)

@for(MPEGFile, 0, @expr(@Array.count(NewFileArray) - 1), 1)

@setGlobal(NewMPEGFile, at exec(echo "@NewFiles" | tail -n $[ 
@Array.count(NewFileArray) - @MPEGFile ] | head -n 1))

@AddNewMPEGFile

@end

@NewFiles.setText("")

-----------------------------------------------------------------

The 'AddNewMPEGFile' script looks like this:

-----------------------------------------------------------------

@setGlobal(FileName, @global(NewMPEGFile))
@setGlobal(NumItems, @Array.count(Scenes) )

# In case the Scenes array does not exist yet
@if( @String.length(@Array.count(Scenes)) == 0)
@setGlobal(NumItems,0)
@endif

@if( @String.length(@global(FileName)) != 0 )

# Add filename to Scenes array and Scene List Widget
@Array.setValue(Scenes, @exec(echo file at global(NumItems)), 
@global(FileName))
@Playlist.insertItem(@global(FileName),-1)
@Playlist.setPixmap("video", at global(NumItems))


# Initialise scene title
@Array.setValue(SceneTitles, @global(FileName), @exec(echo "`basename 
"@global(FileName)"`" | sed "s/.mpg//;" ))
@SceneTitle.setText(@exec(echo "`basename "@global(FileName)"`" | sed 
"s/.mpg//;" ))

# Initialise scene pause length
@Array.setValue(ScenePause, @exec(echo "@global(FileName)"), 0)

@endif

-----------------------------------------------------------------

I really hope there is a workaround for the problem....

Dik


More information about the Kommander-devel mailing list