summaryrefslogtreecommitdiff
path: root/sysui
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-06-06 18:28:07 +0200
committerLuboš Luňák <l.lunak@suse.cz>2013-06-06 18:35:20 +0200
commit4d479ebf1511fd0c2b8bff0f6aa26305709aa338 (patch)
treee679416a81df2f917327a42756da87e998d6873d /sysui
parent3106ed122c927c2a732cc92b2ee5f5066d27d5f8 (diff)
add StartupWMClass= to .desktop files (bnc#777070)
The actual purpose is to help Plasma taskbar associate taskbar items with .desktop files for the purpose of creating launchers. LibreOffice's WM_CLASS handling is rather broken, but the class part of it usually ends up being 'libreoffice-<component>', which however doesn't match names of .desktop files or executables. I fear renaming .desktop files would cause too much breakages in various places that expect the current names, so adding StartupWMClass will help Plasma match them. Change-Id: Ia946307b429d9a7c00408b2b508726fdc88908ac
Diffstat (limited to 'sysui')
-rwxr-xr-xsysui/desktop/menus/base.desktop1
-rwxr-xr-xsysui/desktop/menus/calc.desktop1
-rwxr-xr-xsysui/desktop/menus/draw.desktop1
-rwxr-xr-xsysui/desktop/menus/impress.desktop1
-rwxr-xr-xsysui/desktop/menus/math.desktop1
-rwxr-xr-xsysui/desktop/menus/startcenter.desktop1
-rwxr-xr-xsysui/desktop/menus/writer.desktop1
7 files changed, 7 insertions, 0 deletions
diff --git a/sysui/desktop/menus/base.desktop b/sysui/desktop/menus/base.desktop
index 57562602dc01..d21293db3868 100755
--- a/sysui/desktop/menus/base.desktop
+++ b/sysui/desktop/menus/base.desktop
@@ -31,6 +31,7 @@ X-GIO-NoFuse=true
Keywords=Data;SQL;
InitialPreference=5
X-Ayatana-Desktop-Shortcuts=X-New
+StartupWMClass=libreoffice-base
[X-New Shortcut Group]
UnityQuicklist=New Database
Exec=libreoffice --base %%FILE%%
diff --git a/sysui/desktop/menus/calc.desktop b/sysui/desktop/menus/calc.desktop
index 81be9a8d29a0..a259fd0045f9 100755
--- a/sysui/desktop/menus/calc.desktop
+++ b/sysui/desktop/menus/calc.desktop
@@ -31,6 +31,7 @@ X-GIO-NoFuse=true
Keywords=Accounting;Stats;OpenDocument Spreadsheet;Chart;Microsoft Excel;Microsoft Works;OpenOffice Calc;ods;xls;xlsx;
InitialPreference=5
X-Ayatana-Desktop-Shortcuts=X-New
+StartupWMClass=libreoffice-calc
[X-New Shortcut Group]
UnityQuicklist=New Spreadsheet
Exec=libreoffice --calc %%FILE%%
diff --git a/sysui/desktop/menus/draw.desktop b/sysui/desktop/menus/draw.desktop
index 9e56d0538a34..11acf9362ec4 100755
--- a/sysui/desktop/menus/draw.desktop
+++ b/sysui/desktop/menus/draw.desktop
@@ -31,6 +31,7 @@ X-GIO-NoFuse=true
Keywords=Vector;Schema;Diagram;Layout;OpenDocument Graphics;Microsoft Publisher;Corel Draw;cdr;odg;svg;
InitialPreference=5
X-Ayatana-Desktop-Shortcuts=X-New
+StartupWMClass=libreoffice-draw
[X-New Shortcut Group]
UnityQuicklist=New Drawing
Exec=libreoffice --draw %%FILE%%
diff --git a/sysui/desktop/menus/impress.desktop b/sysui/desktop/menus/impress.desktop
index 10c9ceccb973..91ec5797eb2c 100755
--- a/sysui/desktop/menus/impress.desktop
+++ b/sysui/desktop/menus/impress.desktop
@@ -31,6 +31,7 @@ X-GIO-NoFuse=true
Keywords=Slideshow;Slides;OpenDocument Presentation;Microsoft PowerPoint;Microsoft Works;OpenOffice Impress;odp;ppt;pptx;
InitialPreference=5
X-Ayatana-Desktop-Shortcuts=X-New
+StartupWMClass=libreoffice-impress
[X-New Shortcut Group]
UnityQuicklist=New Presentation
Exec=libreoffice --impress %%FILE%%
diff --git a/sysui/desktop/menus/math.desktop b/sysui/desktop/menus/math.desktop
index 2e0d34453bd7..00f2fd5a5a9d 100755
--- a/sysui/desktop/menus/math.desktop
+++ b/sysui/desktop/menus/math.desktop
@@ -32,6 +32,7 @@ X-GIO-NoFuse=true
Keywords=Equation;OpenDocument Formula;Formula;odf;
InitialPreference=5
X-Ayatana-Desktop-Shortcuts=X-New
+StartupWMClass=libreoffice-math
[X-New Shortcut Group]
UnityQuicklist=New Formula
Exec=libreoffice --math %%FILE%%
diff --git a/sysui/desktop/menus/startcenter.desktop b/sysui/desktop/menus/startcenter.desktop
index d8b0f1a6fe7d..9312defb5b72 100755
--- a/sysui/desktop/menus/startcenter.desktop
+++ b/sysui/desktop/menus/startcenter.desktop
@@ -29,3 +29,4 @@ GenericName=Office
Comment=The office productivity suite compatible to the open and standardized ODF document format. Supported by The Document Foundation.
StartupNotify=true
X-GIO-NoFuse=true
+StartupWMClass=libreoffice-startcenter
diff --git a/sysui/desktop/menus/writer.desktop b/sysui/desktop/menus/writer.desktop
index 1eef64e0a722..202dabacc96d 100755
--- a/sysui/desktop/menus/writer.desktop
+++ b/sysui/desktop/menus/writer.desktop
@@ -31,6 +31,7 @@ X-GIO-NoFuse=true
Keywords=Text;Letter;Fax;Document;OpenDocument Text;Microsoft Word;Microsoft Works;Lotus WordPro;OpenOffice Writer;CV;odt;doc;docx;rtf;
InitialPreference=5
X-Ayatana-Desktop-Shortcuts=X-New
+StartupWMClass=libreoffice-writer
[X-New Shortcut Group]
UnityQuicklist=New Document
Exec=libreoffice --writer %%FILE%%