Sunday, April 24, 2011

[Unity] Add a quick launch of the LibreOffice panel


Although Unity not have a tool for creating shortcuts similar to the application launcher for example, we do it ourselves getting into the guts (?) system.

We can create a quicklaunch of LibreOffice icon from LibreOffice Writer when you right click the icon should look like this.


From a terminal the following command tipeamos

gksu gedit /usr/share/applications/libreoffice-writer.desktop
In the file that opens look for the following line
X-Ayatana-Desktop-Shortcuts=New
And we replaced everything that follows (Except the last line) with the following.
##Start of shortcut menu
##List of shortcuts
X-Ayatana-Desktop-Shortcuts=Writer;Impress;Calc;Math;Draw
##Define Shortcuts
[Writer Shortcut Group]
Name=Writer
Exec=libreoffice -writer %U
OnlyShowIn=Unity

[Impress Shortcut Group]
Name=Impress
Exec=libreoffice -impress %U
OnlyShowIn=Unity

[Calc Shortcut Group]
Name=Calc
Exec=libreoffice -calc %U
OnlyShowIn=Unity

[Math Shortcut Group]
Name=Math
Exec=libreoffice -math %U
OnlyShowIn=Unity

[Draw Shortcut Group]
Name=Draw
Exec=libreoffice -draw %U
OnlyShowIn=Unity
##End of shortcut menu
Save and close the file, and add the access back to the dock of Unity (drag and drop on dock)
If this article was useful and you want to help us to grow Subscribing to our feed or Click "Like" in our Facebook page ,or follow us via Twitter or subscribing to our feed.

People who read this post also read :



0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More