2014年12月15日 星期一

Customize unity sidebar using shell command in Ubuntu

Environment
OS: Ubuntu 12.04.5 (32 bit edition)


Steps
1) Navigate to /usr/share/applications, it shows all the *.desktop files

**Make a .desktop file with the following format if you want to add your custom scripts / softwares to sidebar**

[Desktop Entry]
Type=Application
Terminal=true
Name=unmount-mount
Icon=/path/to/icon/icon.svg
Exec=/path/to/file/mount-unmount.sh

2) Add/remove the designated desktop files to reflect the unity sidebar

3) Run setsid unity to refresh the UI for sidebar changes

沒有留言:

張貼留言