Changeset 1900241


Ignore:
Timestamp:
07/24/14 04:36:53 (3 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, releng/10.0.3
Children:
8b255c8
Parents:
8a18a7d
Message:

Only flag a file as a binary in lumina-open if the executable bit is set AND it does not have a normal file extension. This will catch those cases where a normal file has the executable bit set for some reaon, but it is not an actual binary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lumina/lumina-open/main.cpp

    r1506c22 r1900241  
    117117    extension=info.completeSuffix(); 
    118118    if(info.isDir()){ extension="directory"; } 
    119     else if(info.isExecutable() && extension!="desktop"){ extension="binary"; } 
     119    else if(info.isExecutable() && extension.isEmpty()){ extension="binary"; } 
    120120  }else if(isUrl){ extension = inFile.section(":",0,0); } 
    121121  //if not an application  - find the right application to open the file 
Note: See TracChangeset for help on using the changeset viewer.