I've just compiled a C++ program - which is not a console program, but instead, graphical and using gtkmm.
After building with g++, I can launch it by typing ./program from the terminal. However, if I try to execute it by double-click through the File Manager, it won't run - opens in Text Editor instead. It doesn't even ask me if I want to execute or open in text editor, like it would if this were a bash script for example.
The executable bit is set for this file.
Why is this happening?