MS Office .pps files should open in presentation mode as with MS PowerPoint

Bug #302050 reported by Oibaf
40
This bug affects 5 people
Affects Status Importance Assigned to Milestone
openoffice.org (Baltix)
Fix Released
Undecided
Unassigned
openoffice.org (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: openoffice.org

MS Office .pps files are standard PowerPoint files that, when renamed from .ppt to .pps, open directly in presentation mode (F5) instead of edit mode.

OpenOffice Impress should behave like MS PowerPoint, opening it directly in presentation mode, but this is not the case.

It would be nice to have this properly fixed as it's an important feature when you want to use OOo on conference rooms, where the speaker arrives with its .pps file: if it starts in presentation mode there are no problem. If, instead, starts in edit mode it confuses the user (which most of the time never used OOo before).

As a temporary workaround I suggest to use the ImpressRunner extension from http://oooconv.free.fr/impressRunner/ .

I am using openoffice 2.4.1-11ubuntu2.1 from Ubuntu 8.10.

Thanks

Oibaf (oibaf)
description: updated
Chris Cheney (ccheney)
Changed in openoffice.org:
importance: Undecided → Low
status: New → Triaged
Changed in openoffice:
status: Unknown → Confirmed
Revision history for this message
pablomme (pablomme) wrote :

I would think this is fixed in karmic; PPSs now open in presentation mode. Perhaps this bug should be marked as fixed?

Revision history for this message
Oibaf (oibaf) wrote :

Confirmed fixed. Apparently this is an Ubuntu-specific change, as with Windows version 3.1.1 still does not work.

Changed in openoffice.org (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Yannis Tsop (ogiannhs) wrote :

How can we disable this function???? It's not a fix if it breaks default bahaviour.

Revision history for this message
zzarko (zzarko-gmail) wrote :

I have the same problem (I'm no longer able to open pps in edit mode) and I solved it with this script. It's brute-force solution (temporarily renames pps to ppt), but it works.
----------------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"
----------------SCRIPT----------------
Save it as ooimpress-noshow, do
chmod a+x ooimpress-noshow
and open your pps files with it. You can change association globally (from Properties on pps file), or (probably better) just for some programs in their local preferences (Thunderbird, Firefox, ...).

Revision history for this message
Daniel (danielias) wrote :

I also hate .pps files opening automatically in presentation mode. Mainly because of those "elaborated" presentations coming via e-mail, with the letters falling down from the top of the page - one at a time - to form frases (argh!)
The solution below worked fine for me. Try it.

The command ooimpress has the -n option:
# ooimpress -n filename
which is intended to create/edit a new file, using filename as a template.
To all intents and purposes, it is the same of opening filename in edition mode.

So, just create a shell script named ooimpress-edit (or whatever) containing:

#!/bin/bash
ooimpress -n $1
exit

As root, save this file to /usr/local/bin (which should be in your $PATH).
Don't forget to make it executable! (I mention it because I always do...)

Then edit the "file associations" (mime types) and include ooimpress-edit as the first option to open .pps files.
Of course, do the same in your e-mail client (in Thunderbird: Preferences->Attachments->View & Edit Actions...).

Cheers

Revision history for this message
Daniel (danielias) wrote :

Correction!
The small script above should be:

#!/bin/bash
ooimpress -n "$*"
exit

# The special parameter $*, within double quotes,
# expands to the positional parameters, starting from one,
# as a single word with the value of each parameter separated
# by white space (the first character of the IFS special variable).
# It is necessary if the passed file name has spaces.

Revision history for this message
zzarko (zzarko-gmail) wrote :

@Daniel: MUCH shorter solution, thanks! (I didn't know about the switch... :) )

Oibaf (oibaf)
Changed in openoffice.org (Baltix):
status: New → Fix Released
Revision history for this message
Glauco (glauco-hass) wrote :

As there's no option to disable the auto presentation mode, should I open a new bug?
Fixes should never let the user without options. And this one change the default behaviour of the software, it's very intrusive.

Revision history for this message
Blue (vali-dragnuta) wrote :

I agree, the default behaviour should be user configurable.
And is there alt least a way to exit presentation mode after such a file was opened ?
Pressing escape closes the application....

Changed in openoffice:
status: Confirmed → Invalid
Oibaf (oibaf)
Changed in openoffice:
status: Invalid → Unknown
Changed in openoffice:
status: Unknown → Confirmed
Revision history for this message
Yannis Tsop (ogiannhs) wrote :

there is a much shorter version (if one wants to disable automatic presentation for all files). just:

sudo -s 'echo "#!/bin/sh" > /usr/bin/ooimpress'
sudo -s 'echo "/usr/lib/openoffice/program/soffice -n -impress \"\$@\"" >> /usr/bin/ooimpress'

Revision history for this message
Blue (vali-dragnuta) wrote :

Is anybody watching this ?
Besides the default open mode which is let's say just a mild annoyance, the other problem is that there seems to be NO WAY to exit presentation mode after such a file was opened... pressing escape just closes the whole application, which in turn is a VERY annoying BUG.
So, is anyone watching/doing something about this ?

Revision history for this message
Zsombor (gzsombor) wrote :

Yes, this auto presentation mode is very confusing for me, because I'm not able to open to edit/modify a pps file. The open command from the file menu is behaving similarly - auto play the presentation, and close the document, after it stopped - so there is no workaround for this problem !

Oibaf (oibaf)
no longer affects: openoffice
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.