flat assembler
Message board for the users of flat assembler.

Index > Linux > Program icon in GNU/Linux?

Author
Thread Post new topic Reply to topic
axlucas



Joined: 02 May 2014
Posts: 70
Location: Argentina
axlucas 12 Dec 2023, 13:36
I would like to know how I can make my GNU/Linux GUI programs have a custom icon while running. I mean the icon that in some window managers appears at the top left corner of the window or to the left of the title in the task bar.

I've read many times that there isn't a "program icon" in GNU/Linux, but I know that something of the sort does exist because when I compile my programs, they show with a default icon and when I download some other program, it does have an icon. Also, I use FreeBasic and it does have an option to compile a xpm icon file into the binary, so I wonder how that is done internally and how I should do it with Flat Assembler Smile
Post 12 Dec 2023, 13:36
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20573
Location: In your JS exploiting you and your system
revolution 12 Dec 2023, 14:42
Just to get you started: To show an icon in Linux you have to communicate with the window manager in the desktop environment you run.

Since each DE/WM is different you will either need to write a few different versions of your executable, one for each case, or you can use one of the HLL "glue" libraries like GTK, QT, or similar.
Post 12 Dec 2023, 14:42
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.