mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2025-01-02 13:11:51 +01:00
Add files used to fix Humble App logins
This commit is contained in:
parent
748e4a1ee6
commit
9e2fa60e54
6
humble-app/Humble-scheme-handler.desktop
Normal file
6
humble-app/Humble-scheme-handler.desktop
Normal 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;
|
11
humble-app/handle-humble-scheme
Normal file
11
humble-app/handle-humble-scheme
Normal 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
|
12
humble-app/start-humble.cmd
Normal file
12
humble-app/start-humble.cmd
Normal 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
|
Loading…
Reference in New Issue
Block a user