LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to make a shortcut file in WINE (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-make-a-shortcut-file-in-wine-369586/)

DhenZidane 10-04-2005 02:36 AM

how to make a shortcut file in WINE
 
I am just new to Linux using Fedora Core 4

i have WINE 20050930, i have a working warcraft III

when i want to run my warcraft i just type in the terminal:

$ cd "c/Program Files/Warcraft III"
$ wine w3l.exe -opengl

then my warcraft is running smoothly...
note: i am using a w3l.exe to enter into PVPGN battlenet :D

but do I have to type those command in terminal everytime i have to use my Warcraft??

I try to make a launcher in my desktop, type is application and put this in command box:

wine 'home/user/c/Program Files/Warcraft III/w3l.exe' -opengl

and is has an error says:

cannot start war3.exe make sure the loader is in the same dir

:cry:

the web site said that i have to make a script to do this...but i dont know how...


Your help is much appriciated, Thanks you...

Coldfish 10-04-2005 04:29 AM

you type on your console and try that it is valid...

Code:

alias war3='cd "c/Program Files/Warcraft III" && wine w3l.exe -opengl'
if this command is ok, you can write " war3 " on your console. It has to be worked on...

But you must write in every boot. To avoid this ,

You add this entry to .bashrc ,

Command is like:

Code:

nano /home/user/.bashrc
and a texteditor will open a script.. You have to add only this code at the bottom of the script:

alias war3='cd "c/Program Files/Warcraft III" && wine w3l.exe -opengl'

Is Undead still overpowered on ladder? :)

DhenZidane 10-04-2005 08:14 AM

wow thats great but how about a launcher in my desktop so I just click it and my warcraft will work :rolleyes:


Thank you for your reply :D

johny42 10-04-2005 09:26 AM

Re: how to make a shortcut file in WINE
 
Just edit your shortcut, so instead of current

Quote:

Originally posted by DhenZidane
wine 'home/user/c/Program Files/Warcraft III/w3l.exe' -opengl
it points to:

Code:

cd "/home/user/c/Program Files/Warcraft III" && wine w3l.exe -opengl

DhenZidane 10-04-2005 07:00 PM

I just did what you say and an error message pop-up says:

There was error launching the application
Details: Failed to execute child process "cd" (No such file or directory)

:(

i just put the command on the launcher command box...

I think I just did something wrong....

im soooo :newbie:


All times are GMT -5. The time now is 11:03 PM.