Provide Static quicklist support for LibreOffice grey's icon

Bug #991846 reported by Mozaic
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Fix Released
Undecided
Rolf Leggewie
unity (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

As default, Ubuntu give an icon of writer (blue), Calc (green), Impress (red) in the launcher of Unity.
When we do an right clic, we have some options like create a new document, go to the programs or unlock from launcher.

But the grey icon of LibreOffice have very poor options:
-LibreOffice
-Lock to Launcher
-Quit

It will great if could use this icon for all LibreOffice's applications.

I found a how-to in french documentation:
http://doc.ubuntu-fr.org/libreoffice#ajouter_des_raccourcis_d_acces_au_menu_libreoffice
I try give you some translation:
In terminal write this line
sudo gedit /usr/share/applications/libreoffice-startcenter.desktop

And , copy this line at the end of this file:

X-Ayatana-Desktop-Shortcuts=Writer;Impress;Draw;Math;Calc

[Writer Shortcut Group]
Name=Text Document
Exec=libreoffice -writer %U
TargetEnvironment=Unity

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

[Draw Shortcut Group]
Name=Formula
Exec=libreoffice -math %U
TargetEnvironment=Unity

[Math Shortcut Group]
Name=Drawing
Exec=libreoffice -draw %U
TargetEnvironment=Unity

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

After, restart your session.

I try it and it's work in Ubuntu 12.04.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libreoffice 1:3.5.2-2ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
Uname: Linux 3.2.0-23-generic x86_64
ApportVersion: 2.0.1-0ubuntu5
Architecture: amd64
Date: Mon Apr 30 11:22:54 2012
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta amd64 (20120328)
SourcePackage: libreoffice
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Mozaic (mozaic) wrote :
Revision history for this message
Mozaic (mozaic) wrote :
summary: - Desktop Shortcuts for LibreOffice grey's icon
+ Provide Static quicklist support for LibreOffice grey's icon
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

Thank you for reporting this bug to make Ubuntu better. The quicklist code you have mentioned in your code is outdated. It has been replaced with the new convention. This is illustrated below,

[Desktop Action Writer]
Name=Text Document
Exec=libreoffice -writer %U
OnlyShowIn=Unity;

You can read more about this at https://wiki.ubuntu.com/Unity/LauncherAPI#Static_Quicklist_entries.

Can you branch the libreoffice code, apply your patch and push this. We will try to merge this into Ubuntu and Upstream as well?

@Other Unity developers
This bug is not a duplicate of https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/720716 since that bug report only provide static quicklist support for writer, calc and impress. This bug report is intended to provide quicklist support for the libreoffice main launcher.

Changed in unity:
status: New → Confirmed
Changed in libreoffice (Ubuntu):
status: New → Confirmed
Revision history for this message
Mozaic (mozaic) wrote :

"Can you branch the libreoffice code, apply your patch and push this. We will try to merge this into Ubuntu and Upstream as well?"
Sorry i could not, i am simple user.

I see i forget Base, i try :

[Base Shortcut Group]
Name=Data Base
Exec=libreoffice -base %U
TargetEnvironment=Unity
with Base installed or not, but don't work. An exception ?

Revision history for this message
Mozaic (mozaic) wrote :

I found, i forget the first line:
X-Ayatana-Desktop-Shortcuts=Writer;Impress;Draw;Math;Calc
and add Base.
X-Ayatana-Desktop-Shortcuts=Writer;Impress;Draw;Math;Calc;Base

The problem, if Base is not installed, we have an error message

Changed in unity (Ubuntu):
status: New → Confirmed
Rolf Leggewie (r0lf)
tags: added: trusty
tags: added: bitesize
Revision history for this message
Björn Michaelsen (bjoern-michaelsen) wrote :

Im not sure if this really qualifies as bitesized issue -- comment 5 actually does apply to all applications: Calc, Writer etc.
If only parts of LibreOffice are installed, this might cause confusion.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

removing bitesize tag and extending my offer @mozaic for mentorship. Je meme parle un petit peu le francais ;-)

Once we have updated code, we should ask Björn for careful review to make sure things are expected to work as intended under all circumstances.

description: updated
tags: removed: bitesize
Revision history for this message
Rolf Leggewie (r0lf) wrote :

@mozaic, is this actually something that still needs fixing (in vivid)? From what I understand you want the grey, general-purpose icon to allow you to create a text document or spreadsheet, etc. from the context menu. At least in trusty that is possible for me.

Are we talking about a stable release update here?

Revision history for this message
Rolf Leggewie (r0lf) wrote :

I believe this is a libreoffice issue and thus the two unity tasks should be closed as invalid. Furthermore, I believe the fix has hit libreoffice at least in trusty and later, but waiting for confirmation from Mozaic on that.

Changed in libreoffice (Ubuntu):
assignee: nobody → Rolf Leggewie (r0lf)
status: Confirmed → Incomplete
Stephen M. Webb (bregma)
no longer affects: unity
Changed in unity (Ubuntu):
status: Confirmed → Invalid
Rolf Leggewie (r0lf)
Changed in libreoffice (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.