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.