mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-28 10:02:43 +01:00
0f8c814618
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
25 lines
539 B
Bash
25 lines
539 B
Bash
#!/bin/sh
|
|
|
|
# open-libre-together.sh
|
|
#
|
|
# Script to patch .desktop files from OpenOffice.org so that it can
|
|
# coexist with LibreOffice
|
|
|
|
# v1.00 - 2011/01/03 - Niels Horn <niels.horn@gmail.com>
|
|
|
|
set -e
|
|
|
|
if [ $(id -u) -ne 0 ]; then
|
|
echo "Sorry, need to be root to run this..."
|
|
exit 1
|
|
fi
|
|
|
|
cd /usr/share/applications
|
|
|
|
for dt in base calc draw impress math writer; do
|
|
echo "Changing .desktop file for '$dt' ..."
|
|
sed -i "s|^Exec=s$cmd|Exec=/opt/openoffice.org3/program/s$cmd|" openoffice.org3-$dt.desktop
|
|
done
|
|
|
|
echo "All done..."
|
|
|