Hello!
Why can't the icon for Windows of my creations be used in Ubuntu automatically since it is in the definitions (I want it to appear on the left in the list of icons instead of a question mark)?
Months ago, someone told me how to make icons appear in Ubuntu but it is way too hard for me and most users.
Thanks!
Icon for Ubuntu while running
- marcoagpinto
- Addict
- Posts: 1045
- Joined: Sun Mar 10, 2013 3:01 pm
- Location: Portugal
- Contact:
- StarBootics
- Addict
- Posts: 1006
- Joined: Sun Jul 07, 2013 11:35 am
- Location: Canada
Re: Icon for Ubuntu while running
Hello everyone,
@Fred and/or Freak : Maybe you can create a temporary or a generic *.desktop file in the "/home/username/.local/share/applications/" then copy the user selected icon to "/home/username/.local/share/icons/hicolor/48x48/apps/" folder or in the right folder name according to the icon size.
And make this optionnal in the compiler options.
Best regards
SatBootics
@Fred and/or Freak : Maybe you can create a temporary or a generic *.desktop file in the "/home/username/.local/share/applications/" then copy the user selected icon to "/home/username/.local/share/icons/hicolor/48x48/apps/" folder or in the right folder name according to the icon size.
And make this optionnal in the compiler options.
Best regards
SatBootics
The Stone Age did not end due to a shortage of stones !
Re: Icon for Ubuntu while running
Here: http://www.purebasic.fr/english/viewtop ... 15&t=59400
a script that do that for you!
a script that do that for you!
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: Icon for Ubuntu while running
I remember that old way of making the icons appear in UBUNTU, and it was convoluted.marcoagpinto wrote:Hello!
Why can't the icon for Windows of my creations be used in Ubuntu automatically since it is in the definitions (I want it to appear on the left in the list of icons instead of a question mark)?
Months ago, someone told me how to make icons appear in Ubuntu but it is way too hard for me and most users.
Thanks!
luis helped me to make this easy solution:
Code: Select all
;;; SETUP LINUX ICON CREATION
UsePNGImageDecoder() ;;;
ImportC "" ;;;
gtk_window_set_icon(a.l,b.l,c.l) ;;;
EndImport ;;;
InitSprite()
OpenWindow(0,0,0,800,600,"SOFTWARE",#PB_Window_ScreenCentered)
ICON= CatchImage(#PB_Any,?LINUXICON) ;;;
gtk_window_set_icon_(WindowID(0),ImageID(ICON)) ;;;
Delay(5000)
End
LINUXICON: : IncludeBinary "linux.png" ;;;
I haven't tested for size constraints as I usually work with the 48 pixel icon size.
Hope this works for you.

Keep it BASIC.