looks like it is not a easy thing,
when i play with it always impress tried to start and locked the file until i was able to recover it.
i think a startup delay is required for impress.
that is what i tested:
-a- there is a
/home/pi/Documents/mypresentation.odp
that is the one you want to show
pls check if there is a *lock* file in that directory
extra for this test i work from /HDMI/Desktop not remote, so my wife angry because no TV.
-b- above there are questions about filename and editor so
i suggest you only work from desktop, using the file manager. ([start][accessories][file manager]
and for later work you need to enable /view/show hidden
go down /Documents/ and find your presentation.
-c- instead of thinking auto start we first make only a start script
context menu {right mouse click}/create new/empty file/mypresentation.sh/OK
then find that new file and point mouse on it and
context menu {right mouse click}/text editor
the editor what opens the file is leafpad
now you copy following script into
Code: Select all
#!/bin/bash
env sleep 30s
/usr/bin/libreoffice --show /home/pi/Documents/mypresentation.odp
/file/save/
so this script makes a delay ( can reduce it as raspberry pi starts much faster as other computer )
it starts "libreoffice --show" NO SUDO
using full path info for application and files
context menu {right mouse click}/Properties/Permissions/
EXECUTE (select ANYONE) [OK]
now with a double click you can test that start delay already
-d- now we make a second file, a .desktop like for the desktop icons.
context menu {right mouse click}/create new/empty file/mypresentation.desktop/OK
then find that new file and point mouse on it and
context menu {right mouse click}/text editor
Code: Select all
[Desktop Entry]
Type=Application
Name=mypresentation
Exec=/home/pi/Documents/mypresentation.sh
Icon=libreoffice-impress
Comment=show on boot / login pi
Terminal=true
X-KeepTerminal=false
your start delay script needs also full path.
this we also make executable
context menu {right mouse click}/Properties/Permissions/
EXECUTE (select ANYONE) [OK]
now with a double click you can test that desktop file also
-e- for a autostart we copy that desktop file to
/home/pi/.config/autostart/
pls open a second file manager window and go to (/home/pi) /.config/autostart/
now go back to the first file manager window and DRAG DROP the desktop file to the second window.
pls hold [CTRL] key to do a copy and not a move ( see + sign near mouse pointer )
reboot