Results 1 to 5 of 5

Thread: C++ Application Title and Icon

  1. #1
    Join Date
    Feb 2013
    Beans
    6

    C++ Application Title and Icon

    Hello, I'm new here

    I run Ubuntu 12.10 with the Gnome 3 shell. I program in C++ using Code::Blocks. The libraries I use are OpenGL and GLUT.
    My issue is that the OpenGL window has a name, but in the Activities bar, where for example one would see Firefox, my application says Unknown, and there is no icon.
    I attached an image. Any help would be appreciated.
    Attached Images Attached Images

  2. #2
    Join Date
    Oct 2007
    Beans
    1,914
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Re: C++ Application Title and Icon

    The following link is the first one that comes up when searching for "GLUT Window Title" on google:

    http://www.opengl.org/resources/libr...c3/node27.html

    It should already solve one or both of your problems.
    Last edited by Zugzwang; February 13th, 2013 at 04:49 AM.

  3. #3
    Join Date
    Feb 2013
    Beans
    6

    Re: C++ Application Title and Icon

    Quote Originally Posted by Zugzwang View Post
    The following link is the first one that comes up when searching for "GLUT Window Title" on google:

    http://www.opengl.org/resources/libr...c3/node27.html

    It should already solve one or both of your problems.
    I tried it and it does not work. My problem isn't the name of the actual OpenGL window, but the title displayed in the activities bar. In my picture, on the top of the screen, my application is displayed as unknown.

  4. #4
    Join Date
    May 2007
    Location
    Leeds, UK
    Beans
    1,675
    Distro
    Ubuntu

    Re: C++ Application Title and Icon

    What if you create a .desktop file in ~/.local/share/applications?

    Here are the docs, but it's usually easier to copy one from /usr/share/applications and edit it. Tools also exist, I believe.

    http://standards.freedesktop.org/des...ec-latest.html

  5. #5
    Join Date
    Feb 2013
    Beans
    6

    Re: C++ Application Title and Icon

    Quote Originally Posted by r-senior View Post
    What if you create a .desktop file in ~/.local/share/applications?

    Here are the docs, but it's usually easier to copy one from /usr/share/applications and edit it. Tools also exist, I believe.

    http://standards.freedesktop.org/des...ec-latest.html
    It sadly did not work. The .desktop file launched the application, but the title in the Activities bar was still unknown.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •