Add files used to fix Humble App logins

This commit is contained in:
Zoull 2023-06-03 14:09:26 -06:00
parent 748e4a1ee6
commit 9e2fa60e54
3 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,6 @@
[Desktop Entry]
Name=Humble App (Login)
Comment=Target for handling Humble App logins. You should not run this manually.
Exec=/home/deck/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/pfx/handle-humble-scheme %u
Type=Application
MimeType=x-scheme-handler/humble;

View File

@ -0,0 +1,11 @@
#!/usr/bin/env sh
set -e
export STEAM_COMPAT_CLIENT_INSTALL_PATH=~/.local/share/Steam
export STEAM_COMPAT_DATA_PATH=~/.steam/steam/Steam/steamapps/compatdata/NonSteamLaunchers
FIXED_SCHEME="$(echo "$1" | sed "s/?/\//")"
echo $FIXED_SCHEME > /home/deck/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/pfx/drive_c/.auth
~/.steam/steam/steamapps/common/Proton\ -\ Experimental/proton run ~/.local/share/Steam/steamapps/compatdata/NonSteamLaunchers/pfx/start-humble.cmd

View File

@ -0,0 +1,12 @@
@echo off
cd /d "C:\Program Files\Humble App\"
set /p Url=<"C:\.auth"
if defined Url (
start "" "Humble App.exe" "%Url%"
) else (
start "" "Humble App.exe" "%*"
)
exit