[Desktop-packages] [Bug 1635376] Re: double-clicking on an executable created with gcc6 opens an error message
This is still present in Nautilus on Ubuntu 18.04. -- 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: Unknown Status in nautilus package in Ubuntu: Triaged 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/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
[Desktop-packages] [Bug 1635376] Re: double-clicking on an executable created with gcc6 opens an error message
I believe current bug report describes only a particular case of this Nautilus bug. As I noticed Nautilus just doesn't detect 64 bit binaries as programs. Just boot (live session) 32 bit Ubuntu, go with Nautilus to /usr/bin . All 32 bit binaries are detected as executable binaries. Nautilus is using the program icon for all 32 binaries, and double click on any binary will start this program. Now do the same with Ubuntu 64. Go to /usr/bin . All binaries are detected as "shared library" files. Nautilus is using a generic icon for all 64 bit binaries, and double click on any brings the above message: Could not display "...program name...". There is no application installed for "shared library" files. Do you want to search for an application to open this file? Ironically 32 bit binaries are detected as executable binaries even in 64 bit Ubuntu. Nautilus is using program icons, and double click would start the program ( if only we have 32 bit libraries, used in this program). I didn't try to check sources, it could be something very simple. This problem is also in Nautilus fork, Nemo. Nemo behaves in the same way: 32 bit binaries are detected as executable binaries, when 64 bit are not. Nemo gives another message: A Unknown file type The file "..program name..." has no known programs associated with it. If you trust the source of this file, and have sufficient permissions, you can mark it executable and launch it. Or, you can use the OpenWith dialog to pick a program to associate it with. So, Nemo behaves way better, we can run the program, just after this message click the button "Make executable and run". But anyway Nemo has the same Nautilus bug by not detecting 64 binaries. . Of course, Dolphin doesn't have anything of this kind. I am planning to test Nautilus on another 64 Linux distributions and I will create another bug report, making it more generic. -- 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: Unknown Status in nautilus package in Ubuntu: Triaged 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/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
[Desktop-packages] [Bug 1635376] Re: double-clicking on an executable created with gcc6 opens an error message
** Changed in: nautilus Status: Confirmed => Unknown -- 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: Unknown Status in nautilus package in Ubuntu: Triaged 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/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
[Desktop-packages] [Bug 1635376] Re: double-clicking on an executable created with gcc6 opens an error message
** Changed in: nautilus Status: Unknown => Confirmed ** Changed in: nautilus Importance: Unknown => Medium -- 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: Confirmed Status in nautilus package in Ubuntu: Triaged 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/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
[Desktop-packages] [Bug 1635376] Re: double-clicking on an executable created with gcc6 opens an error message
Have the same issue FWIW. Even many apps that ship with Ubuntu can't be clicked anymore. If nothing else perhaps keying of 'interpreter' would be more reasonable as none of the shared libraries I've checked have one. -- 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: Unknown Status in nautilus package in Ubuntu: Triaged 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/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
[Desktop-packages] [Bug 1635376] Re: double-clicking on an executable created with gcc6 opens an error message
** Changed in: nautilus (Ubuntu) Status: New => Triaged ** Changed in: nautilus (Ubuntu) Importance: Undecided => Low ** Also affects: nautilus via https://bugzilla.gnome.org/show_bug.cgi?id=737849 Importance: Unknown Status: Unknown -- 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: Unknown Status in nautilus package in Ubuntu: Triaged 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/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
[Desktop-packages] [Bug 1635376] Re: double-clicking on an executable created with gcc6 opens an error message
Upstream bug: https://bugzilla.gnome.org/show_bug.cgi?id=737849 ** Bug watch added: GNOME Bug Tracker #737849 https://bugzilla.gnome.org/show_bug.cgi?id=737849 -- 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
[Desktop-packages] [Bug 1635376] Re: double-clicking on an executable created with gcc6 opens an error message
Executables are now linked with the -pie option, which lead to a file type that is nearly indistinguishable from a shared library. I learned that this is an expected consequence. The only difference is the presence of an 'interpreter' for executable files, but nothing forbids a .so to have an 'interpreter' too (for example the libc.so on my system has one): $ file plop.so: plop.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked $ file plop.ex: plop.ex: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32 In conclusion we should look into Nautilus to solve the issue (I closed the bug for gcc). -- 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
[Desktop-packages] [Bug 1635376] Re: double-clicking on an executable created with gcc6 opens an error message
I opened that bug for gcc: https://bugs.launchpad.net/ubuntu/+source /gcc-defaults/+bug/1635706 -- 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
[Desktop-packages] [Bug 1635376] Re: double-clicking on an executable created with gcc6 opens an error message
I did a test. I built the same program with gcc5 and gcc6, then I compared the output of "readelf -a". It happens that Nautilus is right. gcc on Ubuntu 16.10 creates a shared library by default instead of an executable (the Type field in the ELF header is different). -- 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
[Desktop-packages] [Bug 1635376] Re: double-clicking on an executable created with gcc6 opens an error message
@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
[Desktop-packages] [Bug 1635376] Re: double-clicking on an executable created with gcc6 opens an error message
** Description changed: 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 + 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? ** Description changed: 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. -- 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
[Desktop-packages] [Bug 1635376] Re: double-clicking on an executable created with gcc6 opens an error message
Does a.out have execution permission? What is the expected result? Open terminal and show output of a.out? -- 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 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? 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
[Desktop-packages] [Bug 1635376] Re: double-clicking on an executable created with gcc6 opens an error message
** Description changed: 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 Actual result: Nautilus displays an error message: Could not display "a.out". - There is no application installed for executable files. + There is no application installed for shared library files. Do you want to search for an application to open this file? ** Attachment added: "Error message (in french)" https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1635376/+attachment/4764546/+files/nautilus-double-click-exec.png -- 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 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? 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