[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Handling filenames with spaces.
From:       David Faure <david () mandrakesoft ! com>
Date:       2002-04-30 11:48:04
[Download RAW message or body]

On Tuesday 30 April 2002 13:20, markcox wrote:
> In the following code in cdbakeoven, 
> The command calling mpg123 does not correctly handle spaces in the filename.
> 
> <snippet>	
> 
> if(mType.find("x-mp3") != -1)
> {
> 		*cdboShellProc << "mpg123 -v -s " + file + " > " + outName;
> 		tmpList->append(outName);
> 
> </snippet>
[...]
> 
> What is the 'kde way' to do this?

KRun::shellQuote( file );

-- 
David FAURE, david@mandrakesoft.com, faure@kde.org
http://people.mandrakesoft.com/~david/
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KDE, Making The Future of Computing Available Today


 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic