How can I add an icon to call my script into the taskbar?

Please post all general support questions for LXDE here.
Locked
tunyawat
Posts: 2
Joined: Tue Sep 29, 2009 3:16 pm

How can I add an icon to call my script into the taskbar?

Post by tunyawat »

I can place the "Application Launch Bar" button into the taskbar without problem. However, it would allow me to launch a specific application available in the list only. I need a button to call my script. Is there an xml file somewhere I could edit?
maces
Posts: 503
Joined: Sat Oct 25, 2008 6:04 pm
Contact:

Re: How can I add an icon to call my script into the taskbar?

Post by maces »

Hi

You have to create a *.desktop-file. Here is an example:

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=<Name of your application>
Comment=<comment>
Exec=lxterminal -e <yourapplication>
Icon=<path to your icon>
Type=Application
Customize it and place it in "~/.local/share/applications/". Name it "<scriptname>.desktop".

maces
Locked