4

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.

enter image description here

enter image description here

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.

Archisman Panigrahi
  • 28,338
  • 18
  • 105
  • 212

1 Answers1

0

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

Vijay Prema
  • 496
  • 3
  • 9
  • Does not work. xfce4-terminal -e "micro %F" -t "Micro" --hide-menubar --name=Micro --class=micro the output is xfce4-terminal: Unknown option "-t". It does not work unless -t --name and --class is removed, but then it would have the same icon as the terminal. – Archisman Panigrahi Sep 01 '21 at 04:51
  • I installed gnome-terminal in xfce. There the command works, but the icon is still the terminal icon. – Archisman Panigrahi Sep 01 '21 at 05:02