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

List:       kde-usability
Subject:    Re: [Patch] #29984 Change file permission using octal numbers
From:       David Faure <dfaure () trolltech ! com>
Date:       2003-05-19 9:09:10
[Download RAW message or body]

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@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
_______________________________________________
kde-usability mailing list
kde-usability@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-usability
[prev in list] [next in list] [prev in thread] [next in thread] 

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