So protonup-qt was to comfortable for you to use?
Cool, I actually hadn’t heard of this! Though, I do prefer cli applications, so I think I still prefer mine ;)
ProtonPlus is another one.
Convergent thinking is cool though, don't get discouraged.
I do prefer cli applications, so I think I still prefer mine ;)
So protonup ~~-qt~~ was to comfortable for you to use?
There FTFY
Well, well, well, looks like you might have me beat! Though, this doesn’t look like it marks latest and previous versions for ease of use within steam. You do have to restart every time you make a change. Mine however, should only need a restart on the first time you use it.
Uh, that's an interesting update, I'll give it a look, I use protonup for my "steam machine", use within steam would be a good feature there.
By the way, just to clarify, when I say within steam, I mean making it easier to use protonGE within steam. My script lets you set and forget your configuration for proton ge, no matter how much you update, you shouldn’t ever have to change your settings to use the newest version.
However, if you’re wanting to, you should be able to add the script as a non-steam application and run it as if it was a steam game
I also wrote my own Python based installer, updater, manager of Proton GE (but do not post it here, as this is about your project and not mine). Years back when I posted it, people pointed out such a cli tool already existed: protonup. And for those who want a GUI, protonup-qt exists too.
rm -r $tempdir
This is extremely dangerous command! If anything goes wrong for whatever reason and the variable $tempdir is empty at the time of this command, then it would delete everything. At the very least you should do a check if variable is not empty and resolves to an existing directory. Better yet, make it multiple steps:
- check if variable is not empty
- check if variable resolves to a directory
- cd into the directory and delete content by name instead a variable, like
rm -r GE-Proton*and then cd .. back and delete empty directory withrmdir $tempdir
This is a more controlled way of deleting files. I admit that I am a bit paranoid with rm -r commands.
This is extremely dangerous command! If anything goes wrong for whatever reason and the variable $tempdir is empty at the time of this command, then it would delete everything.
And this danger is not merely theoretical. Steam for Linux did it in 2015.
https://github.com/valvesoftware/steam-for-linux/issues/3671
It's not dangerous in this case, if $tmpdir was unset, all that would happen is rm -r $tempdir complaining about a missing operand. The only issue I can see this causing is that if mktemp -d fails rm would print an unhelpful error message. Using rm -rf instead would hide it, so could could checking the variable and conditionally running rm -r, as you suggested.
Scripts and programs are edited all the time, either by its original author or for modifications when downloaded. Maybe the original author forgot something when editing and suddenly its no longer safe. Or $tempdir isn't a unique name, meaning at different places (be it copy paste) could manipulate the global variable. Human errors happen all the time. Better do check in place, instead hoping that this stays safe. Alternatively create a tempdir with a fixed part in name, like "${tempdir}_protonge".
Also, use set -euo pipefail (look at man set) in every script that's more than four lines. It would instantly fail and exit upon finding an unbound variable.
However, there are pitfalls using this quick fail mode:
hmm, I just install it through flatpak; I am a simple person.
Which package do you talk about?
proton GE
I don't know any Flatpak package in Flathub that is just called proton GE. Could you link to the it?
Probably referring to the add-on for Steam
Yes, this exactly. Thx.
Thanks for the link. I didn't know the Flatpak package had addons like these.
Linux Gaming
Discussions and news about gaming on the GNU/Linux family of operating systems (including the Steam Deck). Potentially a $HOME away from home for disgruntled /r/linux_gaming denizens of the redditarian demesne.
This page can be subscribed to via RSS.
Original /r/linux_gaming pengwing by uoou.
No memes/shitposts/low-effort posts, please.
Resources
Help:
- ProtonDB
- Are We Anticheat Yet?
- r/linux_gaming FAQ
- Fork of an earlier version of the above
- PCGamingWiki
- LibreGameWiki
Launchers/Game Library Managers:
General:
Discord:
IRC:
Matrix:
Telegram: