Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1977  / 2 Years ago, tue, december 7, 2021, 8:57:50

When I write C codes in geany and the build and then run the program from there using the buttons there, it works fine. Again I can run the compiled executables using ./file_name command from terminal emulator. But when I double click on the executable from nautilus, nothing happens. I have also checked "Allow executing the file as a program" from the properties menu. But the problem still exists.


More From » nautilus

 Answers
1

In order to run executable files from nautilus, you just have to double click on them.



The reason why you don't see anything is probably because the programs you are making are terminal applications (without a Graphical User Interface) and thus are run on the background, without anywhere to display their output.



So, while the program itself is run, you do not see the result of it.



If an application has a Graphical User Interface then you will have absolutely no problem in running it by double clicking it.



What I do in order to solve this problem, is download the package nautilus-open-terminal (requires relogin to enable it) which adds a "open terminal here" option to nautilus.



So, whenever I want to run something from the current directory with doesn't have a GUI, I open a terminal at the current directory and I run it through the terminal.


[#23356] Wednesday, December 8, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mentpengu

Total Points: 148
Total Questions: 114
Total Answers: 119

Location: Anguilla
Member since Sun, Aug 7, 2022
2 Years ago
mentpengu questions
Sun, Apr 17, 22, 18:09, 2 Years ago
Fri, Aug 12, 22, 01:35, 2 Years ago
Tue, Jul 26, 22, 14:52, 2 Years ago
;