ktwrd / beans-rs

Open-Source Installer for Sourcemods
GNU General Public License v3.0
7 stars 1 forks source link

Use ~/.tmp/ instead of /var/tmp/ on SteamOS #21

Closed ktwrd closed 4 months ago

ktwrd commented 4 months ago

On SteamOS, the /var mount is only given a small amount of space to work with, which can cause beans-rs to throw/return the error FreeSpaceCheckFailure to be returned.

This pull request adds the ability to detect if we are running on SteamOS, and if so, use ~/.tmp as the temporary directory instead of /var/tmp.

This PR also adds the dir_exists and is_steamdeck functions to the helper module.

ktwrd commented 4 months ago

Tested on my Steamdeck, Debian laptop, and Windows install.