[Patch] #29984 Change file permission using octal numbers

David Faure dfaure at trolltech.com
Mon May 19 10:09:10 BST 2003


On Sunday 18 May 2003 19:06, Waldo Bastian wrote:
> > I think that it is needed in the simple dialog though, since it is frequently
> > required when downloading installation scripts. Unless, maybe, someone
> > tells me an easy way to find out whether a KFileItem is an executable
> > (either ELF binary or #! script). Then it could be hidden for all others.
> 
> If/when our mimetypes support Is-Also we can mark the corresponding mimetypes
> as being "also application/x-executable" or something like that.

The current method is copying or calling:

bool BrowserRun::isExecutable( const QString &serviceType )
{
    return ( serviceType == "application/x-desktop" ||
             serviceType == "application/x-executable" ||
             serviceType == "application/x-msdos-program" ||
             serviceType == "application/x-shellscript" );
}

-- 
David FAURE, faure at kde.org, sponsored by TrollTech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
Qtella users - stability patches at http://blackie.dk/~dfaure/qtella.html



More information about the kfm-devel mailing list