that is only a matter of menu shortcuts. the shortcut is designed for KDE, and does not work with Gnome. You don't have to start CB from console, you can doubleclick it in /usr/bin, or you can just copy the menu entry for calculator to your desktop and edit it to start codeblocks instead of the calculator (icon is: codeblocks.png)