#need help automating GSK_RENDERER=gl to run when opening minecraft
146 messages · Page 1 of 1 (latest)
[Desktop Entry]
Type=Application
Name=TLauncher
GenericName=TLauncher
Comment=TLauncher
Icon=/home/l_l/GOG Games/Terraria/support/icon2.png
Exec=java -jar TLauncher.jar
Categories=Game;
Path=/home/l_l
this is my minecraft.dekstop file rn
tlauncher
:)
You'll need to create a new script
Call it something like minecraft.sh
Place it somewhere and take note of that
Add the commands you ran earlier in it
done
And add java -jar path/to/TLauncher.jar
I don't know the exact path so you'll have to search for it
its in /home
Then replace the exec line in the desktop entry with exec=/home/your_user_name/minecraft.sh
And test it
Its /home/l_l
I read?
Nope you add that to the script
2 exec at once?
And it's not tlauncher anymore, it's the full path to that jar
No no, just place that in the script and only one exec
its ist home so java-jar TLauncher.jar works
Without the exec ofc
The jar is in your home?
Do you have TLauncher.jar as a file in /home/l_l ?
Oh then you add
java -jar /home/l_l/TLauncher.jar to the end of minecraft.sh
in the same exec line? how to seperate them? with a space?
To the "end of the minecraft.sh file, inside of it"
And just keep the first part in the exec
Yep, remove exec=
Yeah, give it a chmod +x and try to run it
chmod +x ~/minecraft.sh
Run that in a terminal
Nice that's it

100% no piracy
leme restart and test it again to see if it works
still 15fps
leme manually do that cmd and try again
You might to need to change that to
export GSK_RENDERER=gl
i have to exec that cmd in terminal?
Replace the line in the Minecraft script
_or just append export to the beginning _
Ah btw
Before doing that
Can you run echo $GSK_RENDERER
And tell me what it says
You can but you don't wanna do that for all applications since using vulkan for other apps is better
Did you run the commands manually?
oh wait sorry i forgot to use dedicated gpu when opening this time
Oh
forgot i had to manually do that
Btw it says ngl but the script only sets it to gl
Did you by any chance run the GSK command manually without using the script?
works now
yes i ran the gsk command manually
after i was getting 20fps
Restart :3
And try again
yeah i used the ngl command too after using the gl one
Restart since you won't know if the script did it's thing
ah you could also just log out and back in
i think i broke my laptops 3rd charger <3 , i just restarted leme open it
Mkk
Exec=/home/l_l/minecraft.sh
?
nothing, i just thought minecraft wassent appearing in the menu but it was there
Ah
i had Exec=exec= set in the .dekstop so maybye thats why it didint work
Owh yeah that's why
opennd with igpu again, reopning with dedicated
:3
9fps :D
9?
yeah
then...
i dont think its setting the thing unless i do it manually
leme check again now that i set it manually
Change the first line to only:
GSK_RENDERER=ngl
wait let me check gl if it has bad performence il check ngl then change line
Don't run the GSK command manually :3
just checking if GL fixes performnces or ngl
I see
It's probably the export shouldn't have been added
Try running this then quitting and checking the output of echo
It should now say ngl
If it doesn't then the variable isn't getting set correctly
i was getting around 60
then laptop shutted down randomly
laptops tweaking fr, went from 21 to 32 to 42% battery
Ah...
Let's set it to ngl and hope that never happens again :3
Charger issue I assume
Yep
Run the game, it's okay if you quit immediately then check the output of echo
You don't need to change this anymore
my laptops so fucked omg, broken from 4 places has a random hole in it hinge protector is broken thers a white spot in the corner of the display lmao
and its 6 year old and the thermal paste is probably gone by now
:'3
Ah.. one sec
9fps
my dream of sleeping before 1am will always remain a dream
wait, if other stuff works fine with ngl il just do this
uh @prisma hawk thanks for the help so far but i dont think i need anymore help
il just resort to usinng the cmd manually everytime
We can try one more thing
i would have to restart everytime i finish playing mc anyways
yes?
What text editor are you using?
the one that comes with fedora
You know how to use nano?
neko lets stop, i would be fine with manually using it too
a bit,yeah
It's ok 5 mins
oh setting it there?
Yep
coudent i do it with text editor there
You'll need to sudo it
other apps dont work so great with ngl
so i cant really set it to be at ngl since the moment i boot
Just type the GSR command inside here same way it's in the script at the moment
Then ctrl+s to save and then ctrl+x to exit
Ah... True....
sorry for wasting so much of ur time
its 1am i havent slept sinec 3 days properly
every night im fixing some issue in linux
If you wanna continue tomorrow I don't mind
You can use the export command but in a different way, I'll walk you through it tomorrow
Okk good night
Leaving this for you when you wake up
In your minecraft.sh script run write this
#!/bin/bash
export GSK_RENDERER=ngl
echo "The current rendering backend is set to:"
echo $GSK_RENDERER
java -jar /home/l_l/TLauncher.jar
This will only export the variable in the script
So you won't be able to see it with echo
But to test it open a terminal and run the minecraft script manually just for test's sake using ./minecraft.sh it should show in the terminal that it's using ngl
Minecraft then will be using ngl
So after you make sure it's doing it correctly you can start it normally
hi im back i didint sleep but seems like other games are also lagging now,im fed up with fedora
im gonna change back to mint
and see the screen tearing fix stunner posted
or i will move full time to windows, i cant be staying u ptill 3am everyday fixing issues only
Alrighty then wish you luck