summaryrefslogtreecommitdiff
path: root/sysui/desktop/solaris
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-01-21 10:22:46 +0000
committerKurt Zenker <kz@openoffice.org>2005-01-21 10:22:46 +0000
commit3a04d3142367ba0fe2ee612d55f490099d56127e (patch)
treeb53eef66d3b51bbb3accc2bc971c5cab930150f3 /sysui/desktop/solaris
parent8fe60895e300e5309e27009e0b9605f24cc1fee9 (diff)
INTEGRATION: CWS sysui03 (1.1.2); FILE ADDED
2005/01/18 14:08:04 obr 1.1.2.4: gnome-set-default-application: added missing appid 2005/01/18 10:55:29 obr 1.1.2.3: #i39755#,#i33855# replace BASEDIR with OFFICE_PATH 2005/01/17 13:55:09 obr 1.1.2.2: #i35698# patch script in /usr/bin to run gnome-set-default-application on first office start 2005/01/11 07:56:03 obr 1.1.2.1: #i39755#,#i33855# Moved Solaris desktop integration into a single package. Moved the start scripts in /usr/bin into the desktop integration packages and made the module launchers symbolic links into the office installation.
Diffstat (limited to 'sysui/desktop/solaris')
-rw-r--r--sysui/desktop/solaris/postinstall29
1 files changed, 29 insertions, 0 deletions
diff --git a/sysui/desktop/solaris/postinstall b/sysui/desktop/solaris/postinstall
new file mode 100644
index 000000000000..0a25c9f7245b
--- /dev/null
+++ b/sysui/desktop/solaris/postinstall
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+if [ -x ${OFFICE_PATH}/share/cde/dtintegrate ]; then
+ ${OFFICE_PATH}/share/cde/dtintegrate
+fi
+
+# Add the symlink to software installation database
+installf ${PKG_INSTALL_ROOT:+'-R'} ${PKG_INSTALL_ROOT} ${PKGINST} ${CLIENT_BASEDIR}/etc/%PREFIX=${OFFICE_PATH} s
+
+# Patch the launch script to run gnome-set-default-application on first office launch for GNOME < 2.6
+if [ "$LEGACY_GNOME" = "true" ]
+then
+ cat >> /usr/bin/%PREFIX.tmp$$ << EOF
+#!/bin/sh
+USERDIR=\`sed -n -e 's/UserInstallation=//p' /etc/%PREFIX/program/bootstraprc | sed -e "s|.SYSUSERCONFIG|\$HOME|"\`
+# Run gnome-set-default-application on first office launch
+if [ ! -d \$USERDIR ]
+then
+ /etc/%PREFIX/program/gnome-set-default-application '%PREFIX' 'application/vnd.oasis.opendocument' 'application/vnd.sun.xml' 'application/vnd.stardivision'
+fi
+EOF
+ sed -n -e '2,$ p' ${CLIENT_BASEDIR}/usr/bin/%PREFIX >> ${CLIENT_BASEDIR}/usr/bin/%PREFIX.tmp$$
+ mv -f ${CLIENT_BASEDIR}/usr/bin/%PREFIX.tmp$$ ${CLIENT_BASEDIR}/usr/bin/%PREFIX
+ chmod 0755 ${CLIENT_BASEDIR}/usr/bin/%PREFIX
+ installf ${PKG_INSTALL_ROOT:+'-R'} ${PKG_INSTALL_ROOT} ${PKGINST} ${CLIENT_BASEDIR}/usr/bin/%PREFIX f
+fi
+
+installf ${PKG_INSTALL_ROOT:+'-R'} ${PKG_INSTALL_ROOT} -f ${PKGINST}
+