mmatyas / pegasus-frontend

A cross platform, customizable graphical frontend for launching emulators and managing your game collection.
http://pegasus-frontend.org
Other
1.3k stars 117 forks source link

Cannot launch any games #223

Closed AlexandreBonneau closed 6 years ago

AlexandreBonneau commented 6 years ago

After a fresh install from the official Pegasus Debian repository, when I launch Pegasus from the KDE desktop it correctly reads my previous emulationstation configuration and find some games.

However whenever I try to launch one (one every single emulator available), I always get the same kind of error in the ~/.xsession-errors file:

----------------------------------------
The external program has finished cleanly, with exit code 0
Traceback (most recent call last):
  File "/opt/retropie/supplementary/runcommand/joy2key.py", line 223, in <module>
    curses.setupterm()
_curses.error: setupterm: could not find terminfo database
qrc:///themes/pegasus-grid/PlatformCard.qml:73:5: QML Image: Cannot open: qrc:///themes/pegasus-grid/assets/platform_logo/nds.svg
Executing command: `/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ gamegear "/home/fu/RetroPie/roms/gamegear/Bubble Bobble.zip"`
Process 25684 started
----------------------------------------
tput: No value for $TERM and no -T specified
TERM environment variable not set.
Error opening terminal: unknown.
/opt/retropie/supplementary/runcommand/runcommand.sh: ligne 962: /dev/tty: Aucun périphérique ou adresse
/opt/retropie/supplementary/runcommand/runcommand.sh: ligne 1006: /dev/tty: Aucun périphérique ou adresse
TERM environment variable not set.
tput: No value for $TERM and no -T specified
----------------------------------------
The external program has finished cleanly, with exit code 0
Traceback (most recent call last):
  File "/opt/retropie/supplementary/runcommand/joy2key.py", line 223, in <module>
    curses.setupterm()
_curses.error: setupterm: could not find terminfo database
qrc:///themes/pegasus-grid/PlatformCard.qml:73:5: QML Image: Cannot open: qrc:///themes/pegasus-grid/assets/platform_logo/nds.svg
Executing command: `/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ mastersystem "/home/fu/RetroPie/roms/mastersystem/Choplifter.zip"`
Process 26126 started
----------------------------------------
tput: No value for $TERM and no -T specified
TERM environment variable not set.
Error opening terminal: unknown.
/opt/retropie/supplementary/runcommand/runcommand.sh: ligne 962: /dev/tty: Aucun périphérique ou adresse
/opt/retropie/supplementary/runcommand/runcommand.sh: ligne 1006: /dev/tty: Aucun périphérique ou adresse
TERM environment variable not set.
Traceback (most recent call last):
  File "/opt/retropie/supplementary/runcommand/joy2key.py", line 223, in <module>
    curses.setupterm()
_curses.error: setupterm: could not find terminfo database
tput: No value for $TERM and no -T specified
----------------------------------------
The external program has finished cleanly, with exit code 0
qrc:///themes/pegasus-grid/PlatformCard.qml:73:5: QML Image: Cannot open: qrc:///themes/pegasus-grid/assets/platform_logo/nds.svg
Executing command: `/opt/retropie/supplementary/runcommand/runcommand.sh 0 _SYS_ megadrive "/home/fu/RetroPie/roms/megadrive/Columns III.zip"`
Process 26645 started

(with Aucun périphérique ou adresse that could be translated to No device or address)

In my terminal (I'm using zsh with byobu), I see:

» echo $TERM 
xterm-256color
mmatyas commented 6 years ago

RetroPie requires to be run from a terminal to draw its console UI. You can either change the ES2 config, or modify the program's Desktop file so it's launched with an open terminal. The PC release of RetroPie does the latter with EmulationStation, where it's launched like this: Exec=gnome-terminal --full-screen --hide-menubar -e emulationstation

The desktop file of Pegasus is located here: /usr/share/applications/pegasus-frontend.desktop, you should then change Exec line to Exec=gnome-terminal --full-screen --hide-menubar -e pegasus-fe and remove the Terminal=false line.

AlexandreBonneau commented 6 years ago

Thanks @mmatyas for the hint.

It worked with that .desktop version for KDE users:

Exec=konsole --fullscreen --hide-menubar -e /usr/bin/pegasus-fe