[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-05-02 9:06:01
[Download RAW message or body]

On Wednesday 01 May 2002 19:45, alexpod wrote:
> David Faure wrote:
> > 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 );
> >
> 
> In doc it's not clear: will this call also handle cases when file name 
> contains a ' ( like in file : C'est la vie.mp3) or any other valid 
> special shell character?

Yes it will.

-- 
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