Don't we all love to execute scripts without the geeky looking terminal ?, say we have a shell or a python or a tcl-tk script ,we want now to run this as any app with an icon, Well there is a way.
Install gnome panel by using
$ sudo apt-get install gnome-panel
gnome-panel is just a taskbar application in desktop for ubuntu.
Once the installation is done type
$ gnome-desktop-item-edit --create-new ~/Desktop
you will then observe a create launcher applet , select type as Application
Give any funky name you want for your application.
And in the command field, provide the command which you use to run your script in the terminal.
so to run a tcl-tk application , use wish path_name/file_name.tcl
You can now click the icon to run your script.
You can also edit your application icon , just open it in gedit , the icon is saved as name.desktop
in the above case someapp.desktop
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Icon[en_IN]=python
Exec=wish path_name/file_name.tcl
Name[en_IN]=someapp
Name=someapp
No comments:
Post a Comment