Comment 5 for bug 302050

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