So I have an executable in a directory in my Downloads folder. In that same folder is an icon and a .desktop file for the application. Thus, I was able to pin the icon to my dock. Great!
When I click the application, it spawns off a new process below that dividing line that separates running applications or not. Most of my applications don't spawn an extra window, you get that red dot underneath it and you just access the application using the icon on the dock. This new application is that familiar gear-icon we all know about: https://i.imgur.com/mxkerEQ.png
Instead of the icon specified in the .desktop file. Here is what the original .desktop file looked like:
[Desktop Entry]
Name=(application name)
Exec=AppRun
Icon=icon
Type=Application
Categories=GTK;GNOME;Utility;
As for what I've tried, I added these lines that weren't there before, with no change in behavior:
Terminal=false
Actions=quit;
DBusActivatable=true
SingleMainWindow=true
X-GNOME-UsesNotifications=true
X-GNOME-SingleWindow=true
Hidden=true
I tried doing some research into Window manager classes but figured I was getting into dangerous territory. I have found questions already about dash icons, but none when it's running and it's below the separation line of the dock.
Any way to make the spawned-off executable's icon match the original? Or make it so when I click the icon on the dock, it doesn't spawn off a new process.
=== Still same result after trying what was suggested below.
Here's the lg output: lg output
And here's the .desktop file: desktop file
Could it also be on the part of the writers of the executable?