• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Trouble creating desktop launcher file [SOLVED]

Scheduled Pinned Locked Moved Help and Support
desktopubuntushortcutterminalx86
3 Posts 2 Posters 1.0k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y
    YFZdude
    last edited by YFZdude 18 Jun 2021, 02:05

    Pi Model or other hardware: x86
    RetroPie Version Used: 4.7.14
    Built From: Manual install on Lubuntu 20.04 LTS
    USB Devices connected: Wireless Keyboard, Logitech F710
    Controller used: Logitech F710
    File: All
    Emulator: ALL
    How to replicate the problem:

    I am trying to create a .desktop file for launching emulation station instead of opening a terminal window each time. Here is the content of my file:

    [Desktop Entry]
    Type=Application
    Encoding=UTF-8
    Name=Emulation Station
    Comment = Launches the Emulation Station environment for retro gaming.
    Exec=/usr/bin/emulationstation
    Terminal=True
    

    It launches ES just fine, but when I try to launch any game / emulator, it flashes out to the desktop and then back to the ES menu. I also notice that I don't see a terminal window in the background like I do when I already have the terminal open and type the emulationstation command manually.

    What am I missing?

    Thanks in advance.

    Y 1 Reply Last reply 18 Jun 2021, 02:24 Reply Quote 0
    • Y
      YFZdude @YFZdude
      last edited by YFZdude 18 Jun 2021, 02:24

      So I was able to find a workaround...

      I changed the line to

      Exec=/usr/bin/qterminal -e emulationstation
      

      So now essentially I am launching a terminal window with my shortcut and having it auto execute the emulationstation command.
      I'm still curious if any GNU/Linux wizards know why the original method was not working. Either way it is working now.

      EDIT: For anyone else who uses this solution, you may need to find out where your terminal application is and substitute it in the line above.
      I found mine by typing whereis qterminal since I already knew the name of my terminal program.

      M 1 Reply Last reply 18 Jun 2021, 03:49 Reply Quote 0
      • M
        mitu Global Moderator @YFZdude
        last edited by mitu 18 Jun 2021, 03:49

        @yfzdude said in Trouble creating desktop launcher file [SOLVED]:

        I'm still curious if any GNU/Linux wizards know why the original method was not working. Either way it is working now.

        Because runcommand needs a terminal to show the launch menu, launching ES directly would break this. On Debian and friends, you can use x-terminal-emulator as the terminal starting command, which would be expanded to one of the installed terminal emulators.

        1 Reply Last reply Reply Quote 1
        3 out of 3
        • First post
          3/3
          Last post

        Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

        Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.

          This community forum collects and processes your personal information.
          consent.not_received