While you're here, please consider supporting GamingOnLinux on:
Reward Tiers:
Patreon. Plain Donations:
PayPal.
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!
You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Reward Tiers:
This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!
You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register
- Linaro reveal they're collaborating with Valve for the Steam Frame
- Mesa RADV driver on Linux looks set for a big ray tracing performance boost
- Steam Frame and Steam Machine will be another good boost for Flatpaks and desktop Linux overall too
- 007 First Light gets PC specifications released and that's a lot of RAM needed
- SteamOS 3.7.19 arrives with a bunch of essential bug fixes
- > See more over 30 days here
- Game recommendation?
- Arehandoro - Will you buy the new Steam Frame?
- Arehandoro - Welcome back to the GamingOnLinux Forum
- Liam Dawe - Does anyone game and capture card on linux mint?
- LoudTechie - Will you buy the new Steam Machine?
- Gooda - See more posts
How to setup OpenMW for modern Morrowind on Linux / SteamOS and Steam Deck
How to install Hollow Knight: Silksong mods on Linux, SteamOS and Steam Deck
I would *really* like to always output logs, but steam wants to put them in `$HOME` which drives me bananas. Does anyone know if there is a way to change the location where it outputs the logs?
It's documented here:
https://github.com/ValveSoftware/Proton#runtime-config-options
(Though I don't enable PROTON_LOG often enough to have thought about that though, generally only for one run, and generally to log a startup crash at that, then I take out the variable. Those can get pretty huge if running a noisy game for any length of time (e.g. 100M once with a Borderlands 3 log I generated lol)
But now that you mention it, I think I'm going to add that to my user_settings.py template so my builds always have that PROTON_LOG_DIR var. Then if I forget to remove it from games' launch options it's just going to be on my big "scratch" partition on mechanical storage... that's where I do all my building and staging and stuff, I'm not chewing up flash cells.
By the way, where is the best place to set the environment for steam? I guess `.profile` is the only real option.
I'll probably only turn this on for games that sometimes crash, but it would be nice not to have to set `PROTON_LOG_DIR` every time.
Last edited by ExpandingMan on 17 Feb 2023 at 3:08 pm UTC
I usually just stick stuff like that in the launch options for a game if needed.
Not sure if .profile is sourced for the GUI sessions or just a login shell. I guess it depends on your distribution?
It should be just
PROTON_LOG_DIR="/path/to/dir"
Edit: Wrong (see subsequent posts)... it's
"PROTON_LOG_DIR": "/path/to/dir",
and don't miss the comma
On a line by itself in user_settings.py
You could just export that variable globally, for example somewhere in /etc/profile.d
export PROTON_LOG_DIR="/path/to/dir"
P.S. ~/.profile or /etc/profile or scripts in /etc/profile.d are supposed to apply to ALL shells, login or not. If a distro doesn't do that, then it's broken and in need of a slap.
Last edited by Grogan on 18 Feb 2023 at 12:46 am UTC
Something like this (inside the user_settings dict):
"PROTON_LOG_DIR": "/path/to/dir",That's likely what he did wrong, or possibly missed the comma (because it does work in the file... I added it last night lol)
export PROTON_LOG_DIR="/path/to/dir"
To one of the files in /etc/profile.d (I just stuck it in the file I use to set variables for mesa)
I first commented out my line in user_settings.py and logged right off my user and back.
Now, I hadn't thought of this earlier either, but I log in to the shell first and use "startx", I don't use graphical login managers. I guess where this "depends on the distro" is if you use some graphical login manager and the distributor hasn't set it up to source /etc/profile (which itself should source the parts in /etc/profile.d)
If I had some silly distro ignoring my shell environment, I'd probably add "source /etc/profile" to the init script or unit that starts the login manager :-)