I need further understanding of wine or bash

2008-04-21 Thread Damon L. Chesser
I have a game (only one :) ) that runs in win.  I find I can use thunar 
or nautilus to tunnel down to the executable and right click, choose 
"open with wine", game runs fine.


This is tedious.  So, using my superior knowledge of scripting, I 
thought I would just make a quick bash script and execute it:

--

#bin/bash!
wine /home/damon/C_drive/'Program Files'/'Stardock Games'/'Sins of a 
Solar Empire'/'Sins of a Solar Empire.exe'


--

As you can see, it is simply genius the way I used ALL of my bash 
scripting knowledge.


Of course, I chmoded it. 


When I execute it I get:

[EMAIL PROTECTED]:~/Desktop$ ./Sins_of_a_Solar_Empire.sh
Warning: the specified System directory L"c:\\windows\\system32" is not 
accessible.
fixme:actctx:parse_depend_manifests Could not find dependent assembly 
L"Microsoft.Windows.Common-Controls"

ALSA lib ../../src/conf.c:3949:(snd_config_expand) Unknown parameters 0
ALSA lib ../../../src/control/control.c:909:(snd_ctl_open_noupdate) 
Invalid CTL default:0
err:ole:CoGetClassObject class {9a5ea990-3034-4d6f-9128-01f3c61022bc} 
not registered
err:ole:CoGetClassObject no class object 
{9a5ea990-3034-4d6f-9128-01f3c61022bc} could be created for context 0x1
Warning: the specified System directory L"c:\\windows\\system32" is not 
accessible.

fixme:win:EnumDisplayDevicesW ((null),0,0x33f944,0x), stub!
fixme:d3d:IWineD3DImpl_CheckDeviceMultiSampleType Quality levels 
unsupported at present
fixme:d3d:IWineD3DDeviceImpl_CreateAdditionalSwapChain The app requests 
more than one back buffer, this can't be supported properly. Please 
configure the application to use double buffering(=1 back buffer) if 
possible
err:ole:CoInitializeEx Attempt to change threading model of this 
apartment from multi-threaded to apartment threaded

fixme:d3d:IWineD3DDeviceImpl_CreateQuery (0x1adc78) Unhandled query type 4
fixme:dbghelp:MiniDumpWriteDump NIY MiniDumpWithDataSegs
wine: Call from 0x7b8440c0 to unimplemented function 
faultrep.dll.ReportFault, aborting

fixme:dbghelp:MiniDumpWriteDump NIY MiniDumpWithDataSegs

and the program does a dump then exits.

I have tried to do a symlink from the win partition /windows/system32 to 
/home/damon/C_drive/windows/system32 but I get the same result.


Again, if I use a GUI file manager and tunnel down (wines working dir is 
~/C_drive/Program Files, which is nothing but a symlink to the real 
win/Program Files) and select "open with wine" it works, if I use a term 
and cd into the games dir and type " wine Sins\ of\ a\ Solar\ Empire.exe 
" it works.


What am I missing to make it work with a simple script to avoid all the 
typing or the tunneling via a GUI?




--
Damon L. Chesser
[EMAIL PROTECTED]
http://www.linkedin.com/in/dchesser


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: I need further understanding of wine or bash

2008-04-21 Thread Chris Roberts
On Monday 21 Apr 2008, Damon L. Chesser wrote:
> #bin/bash!
> wine /home/damon/C_drive/'Program Files'/'Stardock Games'/'Sins of a
> Solar Empire'/'Sins of a Solar Empire.exe'

I must confess I haven't read your email in full, but why not just a desktop 
shortcut to:

env WINEPREFIX="/home/damon/.wine" wine "C:\Program Files\Stardock Games\Sins 
of a Solar Empire\Sins of a Solar Empire.exe"

YMMV.

Good luck!

Chris.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: I need further understanding of wine or bash

2008-04-21 Thread Damon L. Chesser

Brian McKee wrote:


On 21-Apr-08, at 11:08 AM, Damon L. Chesser wrote:

if I use a term and cd into the games dir and type " wine Sins\ of\ 
a\ Solar\ Empire.exe " it works


Why not try adding a 'cd into the games dir' before the wine line?

Brian

Brian,

That worked:

#bin/bash!

cd /home/damon/C_drive/'Program Files'/'Stardock Games'/'Sins of a Solar 
Empire'

wine 'Sins of a Solar Empire.exe'

--
Damon L. Chesser
[EMAIL PROTECTED]
http://www.linkedin.com/in/dchesser


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: I need further understanding of wine or bash

2008-04-21 Thread Dylan Garrett
On 4/21/08, Damon L. Chesser <[EMAIL PROTECTED]> wrote:
>
> Brian McKee wrote:
>
> >
> > On 21-Apr-08, at 11:08 AM, Damon L. Chesser wrote:
> >
> > if I use a term and cd into the games dir and type " wine Sins\ of\ a\
> > > Solar\ Empire.exe " it works
> > >
> >
> > Why not try adding a 'cd into the games dir' before the wine line?
> >
> > Brian
> >
> Brian,
>
> That worked:
>
> #bin/bash!
>
> cd /home/damon/C_drive/'Program Files'/'Stardock Games'/'Sins of a Solar
> Empire'
> wine 'Sins of a Solar Empire.exe'
>
> --
> Damon L. Chesser
> [EMAIL PROTECTED]
> http://www.linkedin.com/in/dchesser
>

One issue that I see that you should fix (though it won't affect your
results):
#bin/bash!
Should be:
#!/usr/bin/bash
Or better yet:
#!/usr/bin/env bash


Re: I need further understanding of wine or bash

2008-04-21 Thread Damon L. Chesser

Dylan Garrett wrote:


On 4/21/08, *Damon L. Chesser* <[EMAIL PROTECTED] 
> wrote:


Brian McKee wrote:


On 21-Apr-08, at 11:08 AM, Damon L. Chesser wrote:

if I use a term and cd into the games dir and type " wine
Sins\ of\ a\ Solar\ Empire.exe " it works


Why not try adding a 'cd into the games dir' before the wine line?

Brian

Brian,

That worked:

#bin/bash!

cd /home/damon/C_drive/'Program Files'/'Stardock Games'/'Sins of a
Solar Empire'
wine 'Sins of a Solar Empire.exe'


-- 
Damon L. Chesser

[EMAIL PROTECTED] 
http://www.linkedin.com/in/dchesser


One issue that I see that you should fix (though it won't affect your 
results):

#bin/bash!
Should be:
#!/usr/bin/bash
Or better yet:
#!/usr/bin/env bash

Thanks!

--
Damon L. Chesser
[EMAIL PROTECTED]
http://www.linkedin.com/in/dchesser


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: I need further understanding of wine or bash

2008-04-21 Thread Tzafrir Cohen
On Mon, Apr 21, 2008 at 02:05:23PM -0400, Dylan Garrett wrote:

> One issue that I see that you should fix (though it won't affect your
> results):
> #bin/bash!
> Should be:
> #!/usr/bin/bash

/usr/bin/bash? where? /bin/bash

> Or better yet:
> #!/usr/bin/env bash

Or simpler:

#!/bin/sh

-- 
Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il || a Mutt's
[EMAIL PROTECTED] ||  best
ICQ# 16849754 || friend


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: I need further understanding of wine or bash

2008-04-21 Thread Dylan Garrett
On Mon, Apr 21, 2008 at 4:43 PM, Tzafrir Cohen <[EMAIL PROTECTED]>
wrote:

> On Mon, Apr 21, 2008 at 02:05:23PM -0400, Dylan Garrett wrote:
>
> > One issue that I see that you should fix (though it won't affect your
> > results):
> > #bin/bash!
> > Should be:
> > #!/usr/bin/bash
>
> /usr/bin/bash? where? /bin/bash
>
> > Or better yet:
> > #!/usr/bin/env bash
>
> Or simpler:
>
> #!/bin/sh
>
> --
> Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
> http://tzafrir.org.il || a Mutt's
> [EMAIL PROTECTED] ||  best
> ICQ# 16849754 || friend
>

Oh, duh. Of course bash isn't in /usr/bin. I guess I forgot my linux for a
second. :P
Thanks for fixing my mistake. And sorry to Damon.


Re: I need further understanding of wine or bash

2008-04-21 Thread Damon L. Chesser

Dylan Garrett wrote:


On Mon, Apr 21, 2008 at 4:43 PM, Tzafrir Cohen <[EMAIL PROTECTED] 
> wrote:


On Mon, Apr 21, 2008 at 02:05:23PM -0400, Dylan Garrett wrote:

> One issue that I see that you should fix (though it won't affect
your
> results):
> #bin/bash!
> Should be:
> #!/usr/bin/bash

/usr/bin/bash? where? /bin/bash

> Or better yet:
> #!/usr/bin/env bash

Or simpler:

#!/bin/sh

--
Tzafrir Cohen | [EMAIL PROTECTED]
 | VIM is
http://tzafrir.org.il || a Mutt's
[EMAIL PROTECTED]  |
   |  best

ICQ# 16849754 || friend


Oh, duh. Of course bash isn't in /usr/bin. I guess I forgot my linux 
for a second. :P

Thanks for fixing my mistake. And sorry to Damon.


Hey,

I am the guy, after seen this for YEARS wrote #bin/bash!  !  If I would 
have taken a second to SAY it (sha-bang) I would have realized it.  No 
apologies needed.


--
Damon L. Chesser
[EMAIL PROTECTED]
http://www.linkedin.com/in/dchesser


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: I need further understanding of wine or bash

2008-04-21 Thread Damon L. Chesser

Rich Healey wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Damon L. Chesser wrote:
  

Dylan Garrett wrote:


On Mon, Apr 21, 2008 at 4:43 PM, Tzafrir Cohen <[EMAIL PROTECTED]
> wrote:

On Mon, Apr 21, 2008 at 02:05:23PM -0400, Dylan Garrett wrote:

> One issue that I see that you should fix (though it won't affect
your
> results):
> #bin/bash!
> Should be:
> #!/usr/bin/bash

/usr/bin/bash? where? /bin/bash

> Or better yet:
> #!/usr/bin/env bash

Or simpler:

#!/bin/sh

--
Tzafrir Cohen | [EMAIL PROTECTED]
 | VIM is
http://tzafrir.org.il || a Mutt's
[EMAIL PROTECTED]  |   
   |  best

ICQ# 16849754 || friend


Oh, duh. Of course bash isn't in /usr/bin. I guess I forgot my linux
for a second. :P
Thanks for fixing my mistake. And sorry to Damon.
  

Hey,

I am the guy, after seen this for YEARS wrote #bin/bash!  !  If I would
have taken a second to SAY it (sha-bang) I would have realized it.  No
apologies needed.





I'm still not sure why they're called sha-bangs.. am i missing something
really blatant?

Dammit ten years using unix and this is the thing i don't get..
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIDRQNLeTfO4yBSAcRApICAJ9WKpSJO4/PF2OUqKcRMRbwkDsVxACeKgVK
VN96rAX0N62VVgAz9dYdKHY=
=lD3k
-END PGP SIGNATURE-

  
LOL, Damned if I know.  Goes back to a time when gods walked the halls 
of AT&T I think.  I am thinking of people who did not like the new 
fangled "text" editor because "I do not like to see the state of the 
file while I am editing it".  Quote is from "*Go to: The Story of the 
Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and 
Iconoclasts who were the Hero Programmers of the Software Revolution" 
*by Steve Lohr.  That was the response of one of the Unix/Sun founders 
when he was shown emm (Editor for Mere Mortals) and his response is why 
it was named Emm or so the author claims.  Forwarding this back to the 
list, maybe someone knows?


--
Damon L. Chesser
[EMAIL PROTECTED]
http://www.linkedin.com/in/dchesser


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: I need further understanding of wine or bash

2008-04-25 Thread Chris Bannister
On Mon, Apr 21, 2008 at 08:43:53PM +, Tzafrir Cohen wrote:
> On Mon, Apr 21, 2008 at 02:05:23PM -0400, Dylan Garrett wrote:
> 
> > One issue that I see that you should fix (though it won't affect your
> > results):
> > #bin/bash!
> > Should be:
> > #!/usr/bin/bash
> 
> /usr/bin/bash? where? /bin/bash
> 
> > Or better yet:
> > #!/usr/bin/env bash
> 
> Or simpler:
> 
> #!/bin/sh
> 

You've gotta be careful with #!/bin/sh it may not be linked to bash,
i.e:

ls -al /bin/sh
lrwxrwxrwx 1 root root 9 2008-01-22 04:04 /bin/sh -> /bin/dash

-- 
Chris.
==
"One, with God, is always a majority, but many a martyr has been burned
   at the stake while the votes were being counted."  -- Thomas B. Reed


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: I need further understanding of wine or bash

2008-04-27 Thread Tzafrir Cohen
On Sat, Apr 26, 2008 at 12:40:39AM +1200, Chris Bannister wrote:

> You've gotta be careful with #!/bin/sh it may not be linked to bash,
> i.e:
> 
> ls -al /bin/sh
> lrwxrwxrwx 1 root root 9 2008-01-22 04:04 /bin/sh -> /bin/dash

I did check for bashism in the script before posting it.

I tend to avoid bashism in my scripts for exactly that reason.

-- 
Tzafrir Cohen | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il || a Mutt's
[EMAIL PROTECTED] ||  best
ICQ# 16849754 || friend


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]