[Xfce-bugs] [Bug 13737] Execute ELF shared objects on double click

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Wed Jul 26 00:06:01 CEST 2017


https://bugzilla.xfce.org/show_bug.cgi?id=13737

Viktor Odintsev <ninetls at xfce.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ninetls at xfce.org

--- Comment #1 from Viktor Odintsev <ninetls at xfce.org> ---
Created attachment 7241
  --> https://bugzilla.xfce.org/attachment.cgi?id=7241&action=edit
gfile-test.c

The problem is how actually determine whether shared lib is executable. `file
--mime-type` applied against these binaries says 'application/x-sharedlib',
g_file_query_info contains the same mime type. But in glib opinion this type is
not executable (g_content_type_can_be_executable for 'application/x-sharedlib'
will return FALSE). I'm attaching a simple program which demonstrates this
behavior.

There should be another way to check whether file is executable instead of
relying on mime type.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list