Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am trying to launch OMXplayer and play a sequence of videos on loop on a RaspberryPi running Raspbian Wheezy. I have got a working shell script which launches and plays the videos courtesy of

I have this placed in /home/pi/ and it is executable. I have created a file testsh.desktop in /usr/share/applications/ which I have also made executable. This file contains:

[Desktop Entry]
Comment=Plays videos

I have also tried setting exec as:

Exec=lxterminal --command "/home/pi/"

This isn't working and I guess I am missing something obvious.

share|improve this question
Weird, it works ok in KDE, but not on my Raspberry PI. – parkydr May 8 '13 at 21:28

1 Answer 1

up vote 0 down vote accepted

It doesn't work if you have Terminal=true, it runs

x-terminal-emulator "/home/pi/"

x-terminal-emulator is lxterminal which needs --command to run a command


Set Terminal=false and run the script with

Exec=lxterminal --command "/home/pi/"

as you tried before.


Set Terminal=true and run the script with

Exec=--command "/home/pi/"

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.