If you want to make it a permanent command that works no matter what user (root or your own account) you're using, then this is the simplest. Open a text editor and make a new document. Save it to your home folder as the name of your command (example: mycommand). Then in the document enter the following
#!/bin/bash
cd "/home/owner/.wine/dosdevices/c:/Program Files/Riot Games/League of Legends/RADS/system"
WINEDEBUG=+ntdll wine "rads_user_kernel.exe" run lol_launcher $(ls ../projects/lol_launcher/releases/) LoLLauncher.exe
Save it. Now open Terminal and do the following:
chmod +x mycommand
sudo cp ~/mycommand /usr/bin/mycommand
Now just restart the Terminal or enter the command bash
. You should now be able to run your custom script at anytime by using it's name (example: mycommand
)
cd "/home/owner/.wine/dosdevices/c:/Program\ Files/Riot\ Games/League\ of\ Legends/RADS/system"
instead.cd foo\ bar
andcd "foo bar"
are both correct and will work.