@Khurshid Alam:
 - a.out has execution permission
 - the expected result is: no error message (I updated the bug description)

Obviously the a.out does nothing. I gave the most minimal way to
reproduce the problem. I could put an example of a program that opens a
window I you think it would make the bug easier to understand.

I have several projects I built recently since I installed Ubuntu 16.10
and they all gave me executables I cannot launch from Nautilus. There is
no problem when I launch them from a terminal.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to nautilus in Ubuntu.
https://bugs.launchpad.net/bugs/1635376

Title:
  double-clicking on an executable created with gcc6 opens an error
  message

Status in nautilus package in Ubuntu:
  New

Bug description:
  Ubuntu 16.10 x64 with Nautilus 3.20.3

  * Open a terminal
  * Install gcc: sudo apt install build-essential
  * Build an executable: printf "int main() { return 1; }" | gcc -x c -
  * Open a Nautilus window on the current directory: nautilus .
  * Double-click on the generated executable: a.out

  Expected result: Nautilus starts the executable. No error is displayed.
  Actual result: Nautilus displays an error message:

     Could not display "a.out".
     There is no application installed for shared library files.
     Do you want to search for an application to open this file?

  Also, all executable files compiled with gcc6 have a generic icon
  instead of the purple lozenge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1635376/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to