I recently moved to linux and am currently running Debian 8.2 stretch. I have a question regarding the icons of apps that are executed from the terminal window. My case in particular is with Emacs, I have a desktop launcher for emacs24 that has a high resolution icon. The problem is that am using a bash script to run emacsclient if a server is present and start the server first if not. I noticed that even if I make a custom launcher for the script with a specific icon, the icon I have when switching apps with alt+tab is a low resolution version of the emacs icon.
I also tried running directly emacs24 from the terminal with
instead of using the default launcher and I also get the low resolution icon.
My question is: is there a way to control the icon that are used for apps when they are run from the terminal?