Run app from shell

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
wmsgeek
Level 1
Level 1
Posts: 6
Joined: Mon Mar 12, 2012 11:30 am

Run app from shell

Post by wmsgeek »

Hi, how can i run a app using wine from commandline ?im using ubuntu.

i have tryed just typing appname.exe in shell but gett error

Code: Select all

Application tried to create a window, but no driver could be loaded. Make sure that your X server is running and that $DISPLAY is set correctly.
Thanks[/code]
Alex_G
Level 4
Level 4
Posts: 125
Joined: Fri Mar 02, 2012 2:48 am

Re: Run app from shell

Post by Alex_G »

Is your application was installed in Wine?
Or you just launching it from different media/folder?

If it's installed in Wine, then go in shell in that directory:

Code: Select all

cd /
cd home/username/.wine/drive_c/Program\ Files/AppFolderName
then type

Code: Select all

wine appname.exe
wmsgeek
Level 1
Level 1
Posts: 6
Joined: Mon Mar 12, 2012 11:30 am

Post by wmsgeek »

Thanks Alex. that .exe does not require installation its just an executable that runs on systray.. can you please guide me thanks
Alex_G
Level 4
Level 4
Posts: 125
Joined: Fri Mar 02, 2012 2:48 am

Post by Alex_G »

So, run it just from the folder containing this file.

Do you now how to browse your folders from the terminal/console?

What guidance or help do you need exactly? :)
wmsgeek
Level 1
Level 1
Posts: 6
Joined: Mon Mar 12, 2012 11:30 am

Post by wmsgeek »

LOL, yes i do know that.. the .exe is siting in the ubuntu desktop i have just tryed to cd to desktop and run "wine asd.exe" and it just gave me this..

Code: Select all

Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
err:systray:initialize_systray Could not create tray window
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
wmsgeek
Level 1
Level 1
Posts: 6
Joined: Mon Mar 12, 2012 11:30 am

Post by wmsgeek »

BTW, if i run it by double clicking the exe, it works fine.. its just that i cannot run it from shell (making script to launch it).
sorry for the double post as no edit option.
Alex_G
Level 4
Level 4
Posts: 125
Joined: Fri Mar 02, 2012 2:48 am

Post by Alex_G »

wmsgeek wrote:LOL, yes i do know that..
Oook! Funny, ye. Asked just in case :D

Understood now.

What's the full name of the program? Wanna check it out on my PC )
wmsgeek
Level 1
Level 1
Posts: 6
Joined: Mon Mar 12, 2012 11:30 am

Post by wmsgeek »

Sent you a PM.
Alex_G
Level 4
Level 4
Posts: 125
Joined: Fri Mar 02, 2012 2:48 am

Post by Alex_G »

See the reply.

I can see GUI, but fonts are absent, only "?" - symbols everywhere. )
wmsgeek
Level 1
Level 1
Posts: 6
Joined: Mon Mar 12, 2012 11:30 am

Post by wmsgeek »

Even i dont understand or see the fonts lol, but it does what i want :-).
im tryng to run it from remote pc using putty..and it doesnt work :-(
Martin Gregorie

Run app from shell

Post by Martin Gregorie »

On Tue, 2012-03-13 at 04:58 -0500, wmsgeek wrote:
Even i dont understand or see the fonts lol, but it does what i want :-).
im tryng to run it from remote pc using putty..and it doesnt work :-(
I'd be very surprised if PuTTY could do anything useful unless your
remote PC has a suitable a character set or codepage for its console
mode installed and active.

Try using VNC instead of PuTTY.


Martin
Locked