I made a .desktop file to be able to launch my python script from the launcher bar.
I set the python script as an executable and it runs fine if I double click and run it from the file manager. It also runs fine from terminal.
The desktop file is located in /.local/share/applications/
and looks like:
[Desktop Entry]
Version=1.0
Name=Simple Timer
Comment=Timer
Exec=python3 /home/user/app/timer.py
Icon=/home/user/app/icon/timer.png
Path=/home/user/app/timer/
Terminal=false
Type=Application
Categories=Utility;Application;
If I search "Timer" in Dash, it shows up. I can run it from there. Running it would create two duplicate icons on the launcher bar as pictured.
- First icon will pulsate for about 10 seconds and then disappear. This icon is lockable to the launcher. If this icon is locked to the launcher bar, it will also pulsate for a few seconds after the application window closes, during which, it will be unclickable.
- Second icon is not lockable to the launcher and will only disappear if the application window is closed.
If I run the script from file manager. It creates 1 launcher icon that behaves normally.
I have verified that there are no duplicate .desktop files in /usr/share/applications/
. My created .desktop file only exists in /.local/share/applications/
and if removed, I will no longer be able to search for my timer on Dash or lock it to launcher bar.
How can I fix both the pulsating/unclickable issue and the double icon issue here?