Skip to content

Instantly share code, notes, and snippets.

@cybik
Last active February 21, 2024 00:03
Show Gist options
  • Save cybik/e101f4529090e0f409908f459a055956 to your computer and use it in GitHub Desktop.
Save cybik/e101f4529090e0f409908f459a055956 to your computer and use it in GitHub Desktop.

Hi

Yeah I have no life.

Wat iz

This is a needlessly over-engineered Genshin Impact install methdology for Linux players.

Why?

Some glitches and I just want shit to be installed where it should be.

Why Google Play?

For all the beef I have with Google as of November 2023, I prefer using them as a payment method than an "indie-type" developer's in-house payment solution.

What if I don't want to use Google Play because of /very justifiable beef towards Google/?

Two ways then:

  • Exactly the same process, but get the installer from https://genshin.hoyoverse.com/en
  • Use Heroic Launcher and an Epic Games Store account. That'll be simpler.

Okay fine but I'm on Steam Deck

Power Menu -> Switch to Desktop. Then follow the instructions all the same.

My dumbass method:

  • Download the desktop launcher via https://play.google.com/store/apps/details?id=com.miHoYo.GenshinImpact (UserAgent extension -> set to Windows)
  • Add the EXE to Steam
    • Simply put: this makes Steam run it and set up a nice little corner of your disk space for it
  • Set the Steam command for the game to konsole --hold -e %command% (I'm assuming a KDE desktop)
    • This makes it so Steam will launch the process through another app (namely, the Konsole Terminal Emulator*
    • This is to make it easier to get some key data
      • Yeah, terminal being easier. Shut it.
  • Force the Compatibility Tool to Proton.
    • Use either Proton Experimental or Latest GE for the best results.
    • GE 8-16 even has a fix for the Community and Feedback buttons
    • Latest as of this update to the readme: 8-32
  • Launch once to let the Installer install the Launcher
    • I would recommend installing the Launcher at the root of the C:\ drive in the Prefix
    • This simply unpacks the launcher in the right location
  • After the installer finishes, DO NOT CLOSE THE TERMINAL WINDOW. Open a tab instead!
    • Konsole to the rescuuuue!
  • Run env|grep STEAM_COMPAT_DATA_PATH, this should basically give you the location of the WINE prefix
    • This is what I meant by "easy". Now you just discovered where to look for the installed Launcher.
  • Set the target executable for your Non-Steam Game entry for Genshin to the Launcher in the right Proton prefix
    • You discovered it in the step just above.
    • Also set the "Start In" path to the same path, without launcher.exe at the end
    • If there are ANY spaces in the paths, slap " before and after each path.
      • Linux has issues escaping spaces in paths
      • "What's escaping?" Short version: spaces in filename paths are shit.

This is overkill, but it fixes free space detection issues. Until recently anyway, the launcher has issues detecting free space if you're using Z:\ or any advanced path bullshit. This is how I worked around it.

ma méthode bourrin:

  • Télécharger le lanceur PC via https://play.google.com/store/apps/details?id=com.miHoYo.GenshinImpact (utilise un modificateur de UserAgent et mets-toi Windows)
  • Ajoute l'exe dans Steam
  • modifie la commande dans steam pour faire "konsole --hold -e %command%" (je présume KDE)
  • force l'exécuteur steam sur un proton quelconque (j'utilise GE)
  • lance une fois, l'installeur va faire son taf
  • quand l'installeur finit, NE FERME PAS LA FENÊTRE. Va dans ton appli konsole et ouvre un nouvel onglet de commande
  • roule env|grep STEAM_COMPAT_DATA_PATH, ça va te donner le chemin des fichiers WINE
  • tu peux maintenant utiliser ça pour changer l'exécutable-cible dans Steam pour le lanceur installé "dans C:"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment