Search This Blog

Thursday, May 28, 2020

Linux Ubuntu How to add Eclipse or Other Applications to Desktop Favourite or In Desktop Grid

1. create a file name with /usr/share/applications/filename.desktop extension
2. add the exec=, icon= key value in that file.
3. give the execute permission
4. click the Grid ::: in desktop, see your added .desktop application is will show. right click and select Add to favourite. 


ex 1:

#> gedit /usr/share/applications/eclipse.desktop

[Desktop Entry]
Comment=Eclipse
Terminal=false
Name=Eclipse
Exec=/media/drvijay/Eclipse-20/eclipse
Type=Application
Icon=/media/drvijay/Eclipse-20/icon.xpm
StartupWMClass=Eclipse


ex 2:
[Desktop Entry]
Comment=mapaint
Terminal=false
Name=mspaint
Exec=wine /home/drvijay/.wine/drive_c/windows/mspaint.exe
Type=Application
Icon=/home/drvijay/.wine/drive_c/windows/mspaint.jpeg
#StartupWMClass=mspaint

#run the below cmd for execute.

#> chmod a+x ~/.local/share/applications/.desktop

No comments:

Hit Counter


View My Stats