Which interpreter did you try in your local script? Doing '#!/bin/sh set -x for app in base calc draw do App="${app^}" sed -i \ -e "s#Icon=libreoffice7.0-$app#Icon=/usr/share/icons/gnome/256x256/apps/libreoffice7.0-$app.png#" \ -e "s#^Exec=libreoffice7.0 --\(.*\)#Exec=libreoffice.\1#g" \ -e "/^Name=$App$/{$!{N;s/^Name=$App\nExec=libreoffice$/Name=$App\nExec=libreoffice.$app/;ty;P;D;:y}}" \ /tmp/$app.desktop done'
returns the same bad substitution error -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to libreoffice in Ubuntu. https://bugs.launchpad.net/bugs/1902148 Title: [snap] launchers in app's dock menu do launch general LO Status in libreoffice package in Ubuntu: In Progress Bug description: LO 7.0.2 Ubuntu Focal 1) right-click on LO icon in dock (white LO icon which does launch the home page with apps and recent docs) 2) select e.g. Calc It does launch general LO (home page with apps and recent docs), not Calc. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libreoffice/+bug/1902148/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp