-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to add environment variables to every game #262
Comments
I have found a better alternative for GPU environment variables: PrefersNonDefaultGPU=true
X-KDE-RunOnDiscreteGpu=true Copied from Steam's .desktop file |
Would adding the environment variable to Cartridges itself using something like Flatseal not be enough? I'd rather not overcomplicate the UI. |
And I suppose could add the desktop entry key, but I'm not sure if there could be any adverse side effects? If not, I'm all for it. |
Didn't know/think about this. It's probably a suitable option. As a side note (should probably be a separate issue) word wrap in the executable field of games would be a godsend. Right now I sometimes have to edit the command in a text editor or terminal and paste it in Cartridges.
I haven't noticed any side effects myself, and I predict it's going to be fine for others too since steam does fine. But other users' mileage may vary. |
That's true yeah, I should probably make it more modular or just add the ability to open it in your preferred text editor directly.
I don't do those, but it would be nice to collect feedback somewhere. |
Have you verified that this (specifically the "any games launched from it" part) actually works with Cartridges? It doesn't seem to be working for me. I already know that my Linux Mint 22 system supports However, I added It's hard to tell if Cartridges itself is even affected by the
If one has both integrated graphics and a discrete GPU but the latter is the default device, then For this reason, there's actually an open request to remove To the extent that Edit for clarification: |
Setting aside the specific issue I created the script #!/bin/bash
notify-send "MYTESTVAR=${MYTESTVAR}" so that, if I run Then I added an entry to Cartridges that simply runs MYTESTVAR=foo flatpak run page.kramo.Cartridges env MYTESTVAR=foo flatpak run page.kramo.Cartridges export MYTESTVAR=foo && flatpak run page.kramo.Cartridges flatpak run --env=MYTESTVAR=foo page.kramo.Cartridges flatpak override --user page.kramo.Cartridges --env=MYTESTVAR=foo && flatpak run page.kramo.Cartridges and then running the test entry just results in the notification Given that Cartridges is a Flatpak thing that can launch non-Flatpak things, having Cartridges pass all environment variables it sees to the things it launches might be problematic, but I assume passing at least some environment variables along would be required for |
Is your feature request related to a problem? Please describe.
I need to add some environment variables to be able to launch my games using my dGPU:
Right now I have to add these variables in every game's command, which is cumbersome. The long text also makes the executable field harder to use.
Describe the solution you'd like
An option to set some environment variables in one place that applies to every game would be appreciated.
Describe alternatives you've considered
This can be extended to adding any string to the start of the executables but I'm not sure if there's any use case for that.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: