Bouncyrock / TaleSpire-Beta-Public-Issue-Tracker

Issue tracker for the TaleSpire Beta
33 stars 17 forks source link

XDG-Open Talespire URI on Debian and Arch Linux systems. #1030

Closed LividJava closed 2 years ago

LividJava commented 2 years ago

This is not an issue, this is for those searching on google not in the discord.

Thanks from Adriannom and Doskious from the Discord server for creating these and helping out.

Ubuntu / Debian

Create a file called talespire-xdg.desktop in ~/.local/share/applications

Using your favorite text editor paste the contents below into the mentioned file:

[Desktop Entry]
Type=Application
Name=TaleSpire
Exec=/bin/bash -c 'env WINEPREFIX="/home/$USER/.steam/steam/steamapps/compatdata/720620/pfx" WINEESYNC=1 /home/$USER/.steam/steamapps/common/Proton\ 7.0/dist/bin/wine64 /home/$USER/.steam/steam/steamapps/common/TaleSpire/TaleSpireUrlRelay.exe %u'
StartupNotify=false
MimeType=x-scheme-handler/talespire;

The file assumes you are using a native Steam package, Proton 7.0-2 and default install locations, If you are not using this version or default install location, update the paths to match the version you are using.

After the file is set run the following command:

xdg-mime default talespire-xdg.desktop x-scheme-handler/talespire

You can test to see if your setup is working by opening talespire and running this command in a terminal, It should queue up dice

xdg-open talespire://dice/1d20+5

Arch

Create a file called talespire-xdg.desktop in ~/.local/share/applications

Using your favorite text editor paste the contents below into the mentioned file:

[Desktop Entry]
Type=Application
Name=TaleSpire
Exec=env WINEPREFIX="/home/$USER/.steam/steam/steamapps/compatdata/720620/pfx" WINEFSYNC=1 /home/$USER/.steam/steam/steamapps/common/Proton\ 7.0/dist/bin/wine64 /home/$USER/.steam/steam/steamapps/common/TaleSpire/TaleSpireUrlRelay.exe %u
StartupNotify=false
MimeType=x-scheme-handler/talespire;

The file assumes you are using a native Steam package, Proton 7.0-2 and default install locations, If you are not using this version or default install location, update the paths to match the version you are using.

After the file is set run the following command:

xdg-mime default talespire-xdg.desktop x-scheme-handler/talespire

You can test to see if your setup is working by opening talespire and running this command in a terminal, It should queue up dice

xdg-open talespire://dice/1d20+5

The processes are exactly the same, the difference is that Arch uses WINEFSYNC rather than WINEESYNC

LividJava commented 2 years ago

Closing. Posted so this fix is accessible outside of discord.