I have a python (pygtk) application which starts in different modes depending on arguments. I have a bash script for each application mode:
kadro-reader.sh:
#!/bin/sh
/usr/bin/kadro reader
kadro-gmail.sh:
#!/bin/sh
/usr/bin/kadro gmail
I also have a .desktop launcher for each mode:
[Desktop Entry]
Name=Kadro Google Reader
Icon=kadro-reader
Exec=kadro-reader.sh
Categories=Network;
Type=Application
Every .desktop launcher defines a different icon. But Unity always shows the same icon for all application modes.
Similar problem with Kupfer: After I have started one mode, Kupfer thinks all other modes are running too.
It seams Unity (BAMF Application Matching Framework) and Kupfer are unable to associate the running processes with the right .desktop launcher.
Ist there a right way how to make clear to debian, which icon my python process wants to use?
I have solved the problem as follows:
I have installed my generic Kadro application as a python library. For each mode, I create its own python script, which just calls the generic Kadro library with the right paramter.
Now Unity and Kupfer show the right icons.