-
-
Notifications
You must be signed in to change notification settings - Fork 480
[Linux/MacOS] Split Enviroment Variable and Wrapper Option #1533
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
Conversation
- wrapper args splitted by semicolon
I assume Lutris does something like this import shlex
arguments_array = shlex.split(arguments_string) It's literally splitting arguments by spaces omitting those inside of quotes. |
Ok i will use npm shlex then aswell and i will add a warning. |
Yup sounds good. Had no idea this library existed to be honest, but it sounds like it's perfect for this |
@CommandMC ok i rewrote everything like lutris is doing it. Also fixed shlex crashing on undefined strings. Hopefully will be in a future release. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Codewise looks good. Haven't tested yet though but should work fine.
Thanks for refactoring that ⚔️
I added a small fix and a button to edit entries. Can you have another look? |
Before i mess something up in CSS, maybe @arielj can fix this? |
I'll check! |
How does this wrapper functionality work? Comparing to Lutris, is it supposed to work like the "Pre-launch script" functionality, or "Command prefix"? Or perhaps something completely different? Basically I want to run |
For better adding of enviroment variables a new component "TwoColTableInput" (Better name requested) was written.
This component creates a two column table with key and value
Via Textfields a key and value can be added.
Via delete button entry can be removed
Enviroment Variables and Wrapper are now two seperated options.
@arielj Would be very grateful if you could help me with the component. (Design/Improvments)
Launch Command:
Launch Command: MYENV="Hello World" WINEPREFIX=/home/niklas/Games/Heroic/Prefixes/WheelsofAurelia myexe launch --disable-ui /tmp/.mount_HeroicJjlL37/resources/app.asar.unpacked/build/bin/linux/legendary launch Escolar --language de --wine /home/niklas/.config/heroic/tools/wine/Wine-GE-Proton7-16/bin/wine --wine-prefix /home/niklas/Games/Heroic/Prefixes/WheelsofAurelia
Use the following Checklist if you have changed something on the Backend or Frontend: