So I've almost finished setting up my new development environment Ubunt+VirtualBox+WinXp + WINE for legacy games (like HL2 - can't live without it!).
When developing inside VirtualBox with Visual Studio, I've set things up so that a post-build event copies the binary .NET-exe output file to a Ubuntu-shared folder so that I can do "mono Mygame.exe" from a terminal window in Ubuntu. Works!
But after awhile it does get a tid tad tedious to do it this way. So I wrote a script-file containing just "mono Mygame.exe", saved it as "run" and made it executable. Then I put a link to that script on the Ubuntu desktop.
1. [FIXED] First problem: the link does not change the "current directory" to the link target - quick fix just use absolute paths in script instead:
2. [FIXED] Second problem (or more like annoyance): Ubuntu keeps asking me whether I really want to run the script when I double-click the link. Duh! Of course I do. But how do I teach Ubuntu that? Or is there another way?
Update: I found solutions to both problems!