From 08d67b91dabd7643006ebdc771925adf7cb4380ba968bc0b16fe135c2b31f435 Mon Sep 17 00:00:00 2001 From: Petr Mladek Date: Wed, 20 Feb 2013 11:39:37 +0000 Subject: [PATCH] - make sure that StartupNotify=true is written into the [Desktop Entry] section (bnc#796875) OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libreoffice?expand=0&rev=28 --- libreoffice.changes | 6 ++++++ libreoffice.spec | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libreoffice.changes b/libreoffice.changes index 1a554ae..f8c41cc 100644 --- a/libreoffice.changes +++ b/libreoffice.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Feb 20 11:35:25 UTC 2013 - pmladek@suse.com + +- make sure that StartupNotify=true is written into the [Desktop Entry] + section (bnc#796875) + ------------------------------------------------------------------- Mon Feb 11 16:49:30 UTC 2013 - pmladek@suse.com diff --git a/libreoffice.spec b/libreoffice.spec index fe453d2..fe4d64d 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1636,7 +1636,7 @@ for desktop in * ; do # finally, create the right link ln -sf $relative_target $desktop_new # enable startup notification (bnc#796875) - grep -q "NoDisplay=true" $desktop_new || echo "StartupNotify=true" >>$desktop_new + grep -q "NoDisplay=true" $desktop_new || sed -i "s/\(\[Desktop Entry\]\)/\1\nStartupNotify=true/" $desktop_new # suse_update app=`echo $desktop_new | sed "s/.desktop//"` %suse_update_desktop_file $app