(Solved) Starting a presentation straight from command line

Using applications, configuring, problems
Post Reply
Message
Author
Laie
Posts: 318
Joined: Sun 20 Jan 2008, 18:42
Location: Germany

(Solved) Starting a presentation straight from command line

#1 Post by Laie »

I try to start a presentation with Libreoffice straight from the command line. I am able to start libreoffice with the command

Code: Select all

libreoffice5.2 --impress
I should be able to start the presentation with

Code: Select all

libreoffice5.2 --impress --show /mnt/home/path/file.odp
When trying I recieve an dialog box

Code: Select all

/mnt/home/path/file.odp does not exist
What's my mistake?
Last edited by Laie on Sat 13 May 2017, 20:21, edited 1 time in total.

User avatar
Galbi
Posts: 1098
Joined: Wed 21 Sep 2011, 22:32
Location: Bs.As. - Argentina.

#2 Post by Galbi »

Do you have a folder named path in /mnt/home?
Remember: [b][i]"pecunia pecuniam parere non potest"[/i][/b]

Laie
Posts: 318
Joined: Sun 20 Jan 2008, 18:42
Location: Germany

#3 Post by Laie »

I used the term "path" as an abbreviation for /mnt/home/Users/Default/Documents/display2/...
Path and file name were entered correctly.

Laie
Posts: 318
Joined: Sun 20 Jan 2008, 18:42
Location: Germany

#4 Post by Laie »

If I move the file to the root directory i get no error.

Code: Select all

libreoffice5.2 --impress --show file.odp
is sufficient to start the presentation.

So it's a question to lead impress to the correct directory.

User avatar
Galbi
Posts: 1098
Joined: Wed 21 Sep 2011, 22:32
Location: Bs.As. - Argentina.

#5 Post by Galbi »

With this command:

Code: Select all

# /opt/libreoffice5.3/program/simpress /root/Downloads/myodp.odp
it opens fine.

Saludos.
Remember: [b][i]"pecunia pecuniam parere non potest"[/i][/b]

Laie
Posts: 318
Joined: Sun 20 Jan 2008, 18:42
Location: Germany

#6 Post by Laie »

Gracias, Galbi,
that works indeed.

My fault was to have blank spaces in the filename.
Solution 1) Don't use file names with spaces

Solution 2) put the file name in quotation marks:

Code: Select all

libreoffice5.2 --impress --show /mnt/home/path/'file name.odp'

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#7 Post by Mike Walsh »

Hallo, Laie.

If it's your desire to keep your Impress presentations in /mnt/home (so as not to clog up 'Puppyspace'), you could always sym-link your 'Presentations' folder from /mnt/home into /root. That way, you can use /root for access, yet the folder you're referencing actually resides in /mnt/home/.

(Open ROX on /mnt/home, open ROX again on /root, and move your presentations directory from /mnt/home to /root, using 'Link(Absolute)'.)

As you've discovered, Linux is incredibly sensitive to how stuff is entered in the terminal! Pup's no different in this respect; a single unintentional space, or a single wrong character, will throw a major spanner in the works...

That's why it's always a good idea to 'proof-read' any terminal entries before executing them.

You can use file names with spaces in them. If you want to use such a name in a terminal command, or a Bash script, etc, you can enclose the the file name (or the whole path) with quotation marks. Like this entry for one of my Windows apps running under WINE:-

Code: Select all

wine "/root/.wine/drive_c/Program Files/LTSpice/LTSpice.exe"
The quotation marks help to preserve the space in the string. The initial space after 'wine' is obviously required for correct Linux operation. The quotation marks help to preserve the space in 'Program Files'. Puppy sees that string within the quotation marks as a continuous one.

Hope that helps. Another Puppian taught me that trick a couple of years ago; I'm more than happy to pass it on!


Mike. :wink:

Post Reply