This a specification of my previous question (What's a .desktop file?) where I wondered how to create a .desktop file in order to create an icon on the launcher for a Wine application.
I don't understand what do we have to do with the following code:
[Desktop Entry] Name=FooBar Comment=Foo & Bar Exec=sh -c "cd /home/USER/.wine/drive_c/Program\ Files/FOOBAR_FOLDER; wine foobar.exe" Icon=wine Terminal=false Type=Application Categories=Wine; StartupNotify=true
Replace USER and FOOBAR_FOLDER with appropriate values. So you'll be able to locate your application in the Launcher by typing "FooBar".
This is the top answer given to a question similar to my previous one, which you can see here: How does one create a custom application launcher for Wine installed apps?, but I don't understand how shall I handle the code I just provided. I tried to copy and paste on the terminal, but it wouldn't work.
In other words, I need that same answer but more comprehensively explained and easier to understand since I don't get what to do with the code provided! Please note, I have few skills with computers. Thank you very much! :)