# Revision history [back]

I tried JohnD's answer and that didn't work changing from .pps to .ppt. I don't know if it's a Linux Mint 17.1 problem in renaming the suffix or LibreOffice problem.

What happens is even if I open it after renaming it automatically displays the presentation. On pressing Esc, Impress exits.

I saw on https://forum.openoffice.org/en/forum/viewtopic.php?f=10&t=23250 a script:

#!/bin/bash
#script to open pps files in edit mode in Ubuntu
#script contains code found on several places on the internet and can handle only one parameter (file)

fullpath=$1 filename="${fullpath##*/}"                      # Strip longest match of */ from start
dir="${fullpath:0:${#fullpath} - ${#filename}}" # Substring from 0 thru pos of filename base="${filename%.[^.]*}"                       # Strip shortest match of . plus at least one non-dot char from end
ext="${filename:${#base} + 1}"                  # Substring from len of base thru end
if [[ -z "$base" && -n "$ext" ]]; then          # If we have an extension and no base, it's really the base
base=".$ext" ext="" fi extnew=$ext
if [ "$ext" == "pps" ] || [ "$ext" == "PPS" ]; then
extnew="ppt"
fi
if [ "$dir" == "" ]; then dir="." fi oldname="$dir/$filename" newname="$dir/$base.$extnew"
mv "$oldname" "$newname"
ooimpress "$newname" mv "$newname" "\$oldname"


Save it as ooimpress-noshow, do chmod a+x ooimpress-noshow

The script is for OpenOffice Impress, how would I alter it for LibreOffice, and where should it be saved to work?