I have a python script that does some graphing of data in real-time. While it's running, Ubuntu only shows a question mark icon in the launcher. I'd like to display a custom image.
The reasoning for this is that our application spawns a few different applications, and all of them have the question mark icon. This makes it confusing for the user when wanting to switch focus between the applications.
I have tried creating a Desktop Entry file in ~/.local/share/applications
[Desktop Entry]
Version=1.0
Name=My Plot
Comment=Super cool plot
Exec=python /net/users/username/path/to/plot.py
Icon=plot.png
Terminal=false
Type=Application
Categories=Utility;Application;
Where /net/users/username is my $HOME directory. I tried placing the plot.png icon in /net/users/username/.local/share/icons/hicolor/48x48/apps/
Is that the right way to create a custom icon for a running python script?
Note: I have no desire to launch this script via the Ubuntu Launcher. It wouldn't hurt if the solution also did that. I only want an icon to be displayed while the python script is running.
Terminal=falsein there. I copied that from another. I am launching it from a terminal. Eventually it will be a system call from a C++ GUI application, but essentially from a terminal. Is there another way to simply have it show an icon instead of the question mark? Maybe something I can do from within the python script?Terminal=Truewill mean that when you launch this from the unity launcher, a terminal will open to run the application. You can see the syntax for desktop entries here However, the desktop entry isn't going to help you in this case. I'll take a look to see what I can find, but first thing's first, I wanted to get you off of the trail of that red herringpython -m pyqtgraph.examplesand some sample graphs will come up. That also has a question mark icon.