About Me

header ads

[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)

Post a Comment

0 Comments