Sup gamers.
Super new to Linux gaming after a brief stint in 2011-2012 with Ubuntu before I shorted my laptops battery by ripping the screen off (woops)

Anywho, I’m trying to run runelite through steam as old school runescape with the launch options: echo “%command%”; /home/zidane/Downloads/RuneLite.AppImage

First off, no idea what any of the options are doing and searching online is no help so I can’t fix it myself…

But this is my problem… The game (runelite not osrs) opens briefly once, closes, and then opens a new runelite which I’m assuming is making steam no longer think that it’s running old school RuneScape? I’m able to play but I want steam to know I’m playing so number go up on steam while number go up in game.

  • MasterOKhan@lemmy.ca
    link
    fedilink
    English
    arrow-up
    5
    ·
    edit-2
    14 hours ago

    I have experience with Runelite in a third party Jagex launcher project I worked on recently. I have learned that Runelite has a small launcher program that forks and launches another Java process that is running an embedded jar file. The problem is, steam only sees the first “launcher” and not the forked Java process. So once the you launch Runelite steam thinks you closed the game.

    I would recommend finding the Runelite.jar file and launching that directly with Java ie. “java -jar Runelite.jar”.

    Edit: I just checked, you can download the jar from the Runelite website (it’s at the bottom of the list)

  • just_another_person@lemmy.world
    link
    fedilink
    English
    arrow-up
    3
    ·
    23 hours ago

    Don’t use “echo”. That’s akin to saying “Print everything after this echo command to the terminal”, so it’s just outputting the stuff after echo as if it were text.

    • Zidane@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      20 hours ago

      That’s what I thought but when I don’t have the echo in the launch options it just opens the normal osrs client instead of RuneLite… ¯\_(ツ)_/¯

  • dgdft@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    23 hours ago

    Try removing the echo call, and if that fails, try running Runelite as a JAR.

    You might also want to move your JAR or AppImage to somewhere like /home/zidane/.local/bin for good measure, so it doesn’t get wiped as easily.

    • Zidane@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      20 hours ago

      I tried to rename to .jar and put that into the steam launch options to no avail.

      Would I be able to have an always mounted drive and use /games/ as a root (?) directory? Or would that be a bad idea? Probably a dumb question but I’m so clueless lol

      • dgdft@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        17 hours ago

        You’ll have to install Java and download Runelite as a JAR (IIRC it’s labeled as the “All Platforms” download option on Runelite.net.

        You can definitely set up /games/ as a directory but you’ll want to set it up with the right permissions for your Steam Deck user to access it using the chmod and chown commands.

        Details will depend on how you mount your drive though. Unfortunately the power and flexibility of Linux means there’s no single “right” way to do these things.

  • Björn@swg-empire.de
    link
    fedilink
    English
    arrow-up
    1
    ·
    23 hours ago

    I would try /home/zidane/Downloads/RuneLite.AppImage # %command% as the launch option.

    To break down your original launch options:

    • echo is a program to output any text that follows it
    • %command% is whatever Steam would have used originally to start the game. If this is not used in the launch options it would be in front of the options.
    • the semicolon ; means “end of command”.
    • /home/zidane/Downloads/RuneLite.AppImage is of course the command to launch RuneLite

    In my commandline arguments # indicates the start of a comment. Everything after it should be ignored.

    I hope this fixes it for you.

    • Zidane@lemmy.caOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      20 hours ago

      Tried a few different ways and got nowhere ;( without the echo it still does the open and close and reopen thing. Did I fuck up my steam install or something?? I did have issues with marvel rivals yesterday with it not wanting to open… Hmmm

      • backwardsbae@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        25 minutes ago

        I tried using the above command and had the same issue until I went to runelite.appimage > right click > properties > permissions > check “allow executing file as program”

        Though I still can’t sign in since I have a jagex account. 🤷‍♀️ Got it to launch though!