From 9e2fa60e5452630676f10bc6d91ce5040f8baac5 Mon Sep 17 00:00:00 2001 From: Zoull Date: Sat, 3 Jun 2023 14:09:26 -0600 Subject: [PATCH] Add files used to fix Humble App logins --- humble-app/Humble-scheme-handler.desktop | 6 ++++++ humble-app/handle-humble-scheme | 11 +++++++++++ humble-app/start-humble.cmd | 12 ++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 humble-app/Humble-scheme-handler.desktop create mode 100644 humble-app/handle-humble-scheme create mode 100644 humble-app/start-humble.cmd diff --git a/humble-app/Humble-scheme-handler.desktop b/humble-app/Humble-scheme-handler.desktop new file mode 100644 index 0000000..2b0c2c2 --- /dev/null +++ b/humble-app/Humble-scheme-handler.desktop @@ -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; \ No newline at end of file diff --git a/humble-app/handle-humble-scheme b/humble-app/handle-humble-scheme new file mode 100644 index 0000000..0c98223 --- /dev/null +++ b/humble-app/handle-humble-scheme @@ -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 \ No newline at end of file diff --git a/humble-app/start-humble.cmd b/humble-app/start-humble.cmd new file mode 100644 index 0000000..1e449c1 --- /dev/null +++ b/humble-app/start-humble.cmd @@ -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 \ No newline at end of file