Sign in to follow this  

Application Name and Icon Help

This topic is 1796 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm using:
C++

Code::Blocks

glut

OpenGL

Linux

 

On the top of the screen, you have a title, and an icon. My icon is blank and the title is unknown. Any ideas on how to fix this?

View the attachment.

Share this post


Link to post
Share on other sites

Have you tried setting a custom name and title in glut? http://www.opengl.org/resources/libraries/glut/spec3/node27.html

I have not. Thank you for the suggestion, I'll try it and update you on my problem smile.png

 

I tried the function. It changed the name of the OpenGL window, but not the name in the Activities bar above. Thanks for the suggestion :)

Edited by ProvenDantheman

Share this post


Link to post
Share on other sites
There might be some way to solve this hidden in the depths of GLUT (or its newer and still maintained implementation freeglut), but mostly GLUT is just a quick and dirty way to get an OpenGL window quickly with the minimum amount of fuzz. It's not intended to offer access to the more detailed OS infrastructure. If you want something like that, consider SFML, GLFW or similar libraries.

Share this post


Link to post
Share on other sites

Sounds like setting it with GLUT is just setting the window title, not the application title. Is there a way to set an application title? Been a long time since I used GLUT.

I'm not sure, I'll try to look into it more.

Share this post


Link to post
Share on other sites
The most likely scenario is: there is no solution with GLUT. As I said, GLUT is a quick and dirty way to whip up a window. It's great for a quick test or a demo. It's not intended for anything resembling a full-fledged application.

Share this post


Link to post
Share on other sites

I sort of figured out the issue. I ran the application with an Ubuntu session, as opposed to a Gnome3 session. In Ubuntu, the title displays fine. In Gnome, it does not.

 

I've created .desktop files in Gnome, using the specifications required, but that yielded me with no results. I ended up having a nice looking launcher for the app, but the title displayed incorrectly.

Share this post


Link to post
Share on other sites
Sign in to follow this