diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2021-04-11 14:59:49 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2021-06-07 14:48:45 +0200 |
commit | c1883367c372fd293d4a17c7aae6063dd2e81da1 (patch) | |
tree | 4ce376179c192598318f10806b3d50775c5d3666 /kio | |
parent | 92bb9740fa5790b88d470371001d4cfdc6026b94 (diff) | |
download | tdelibs-c1883367c372fd293d4a17c7aae6063dd2e81da1.tar.gz tdelibs-c1883367c372fd293d4a17c7aae6063dd2e81da1.zip |
Add a definition of MIME type application/x-pie-executable.
This resolves incorrect identification of binary executables with libmagick >= 5.33.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit a5def4f9a471a83465be8918a443fe96e49e3029)
Diffstat (limited to 'kio')
-rw-r--r-- | kio/kio/krun.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/kio/kio/krun.cpp b/kio/kio/krun.cpp index 58926eac8..298cc93eb 100644 --- a/kio/kio/krun.cpp +++ b/kio/kio/krun.cpp @@ -155,8 +155,10 @@ pid_t KRun::runURL( const KURL& u, const TQString& _mimetype, TQWidget* window, noAuth = true; } } - else if (_mimetype == "application/x-executable") + else if (_mimetype == "application/x-executable" || _mimetype == "application/x-pie-executable") + { noRun = true; + } } else if ( isExecutable(_mimetype) ) { @@ -1452,6 +1454,7 @@ bool KRun::isExecutable( const TQString& serviceType ) serviceType == "media/builtin-trash" || serviceType == "media/builtin-webbrowser" || serviceType == "application/x-executable" || + serviceType == "application/x-pie-executable" || serviceType == "application/x-msdos-program" || serviceType == "application/x-shellscript" ); } |