I have created a .desktop file for octave-cli
, which is the command line version of GNU Octave. When I double click the .desktop file (which has the icon of Octave, and is pinned in XFCE Panel), the opened terminal window has a icon of Terminal (not of Octave).
Is there a way to make command line programs use their own icons throughout?
This also happens when I drag the .desktop file to a dock like Plank.
To clarify, the .desktop file does have the icon I had set. But when I double click it, it opens in a terminal with a terminal icon. I want it to open in a terminal (obviously) with a octave icon, to make it look like a standalone software.
I found out a way to do it in Ubuntu Gnome 20.04. Not sure if it works in your DE, but you may be able to adapt it https://askubuntu.com/a/1361035/1064531