You are not logged in.

#1 2009-03-11 19:38:01

XAD
Member
From: Roskilde, Denmark
Registered: 2008-06-16
Posts: 23

CDrom drive in Wine

I have installed wine and winetricks (Wine-doors didn't run for some reason)

Next I installed my sons Bob the Builder game, and I just couldn't get it to run, so I set the CDrom drive with Winecfg to /media/BOB3 same problem, I have reinstalled it and found that it is not a disc protection problem as it runs when just installed, but I cannot get it to run subsequently. The error is that the executable could not be found, invalid path (and then blank where the path would be).

On a whim I tried to

cd /media/BOB3
wine BBCAuto.exe

and bingo, the game runs, but I am not getting a 4 year old to do that, but choosing the right icon to that he can do.

So what am I missing.

Let me know if I should post any config files.

Thanks

Offline

#2 2009-03-11 21:27:48

r.b
Member
From: Winnipeg, MB
Registered: 2009-03-11
Posts: 12

Re: CDrom drive in Wine

Can you get it to run with this command?

env WINEPREFIX=/media/BOB3 wine BBCAuto.exe

:wq

Offline

#3 2009-03-11 23:41:13

XAD
Member
From: Roskilde, Denmark
Registered: 2008-06-16
Posts: 23

Re: CDrom drive in Wine

no, got a "read only filesystem" error - makes sense as I tried before mounting the cdrom and it created the environment. (Automount under PCmanFM is another issue)

Thanks for the input anyway.

Offline

#4 2009-03-11 23:45:49

XAD
Member
From: Roskilde, Denmark
Registered: 2008-06-16
Posts: 23

Re: CDrom drive in Wine

allright new idea, dirty for sure if, but if it works it works. Problem is that I am not sure how to do this.

I have a text file with the code, I can

sh bob

and it CD's into the directory and executes the file.
Now the question os how do I "make it executable" from the desktop. Like an old DOS .bat file.

Offline

#5 2009-03-12 00:03:02

r.b
Member
From: Winnipeg, MB
Registered: 2009-03-11
Posts: 12

Re: CDrom drive in Wine

To make it executable, open a terminal and run

chmod +x bob

(assuming the file is called bob and is in the current directory). However, if you want it to have a different icon, you'll have to make a .desktop file. This code should generate a simple one, just replace <icon> with the path to the icon you want to use:

echo "[Desktop Entry]
Type=Application
Name=Bob The Builder
Icon=<icon>
Exec=sh bob
Terminal=false
Categories=Application;Game;
" > bob.desktop

:wq

Offline

#6 2009-03-12 08:35:45

XAD
Member
From: Roskilde, Denmark
Registered: 2008-06-16
Posts: 23

Re: CDrom drive in Wine

Thanks especially the last part which I wouldn't even have known how to google.

just beccause I'm a bit dense. The last bit of code is not a entry to a file, right, it's what I should type in the CLI

Offline

#7 2009-03-12 17:56:39

r.b
Member
From: Winnipeg, MB
Registered: 2009-03-11
Posts: 12

Re: CDrom drive in Wine

Yes, that last part should be entered in the CLI, although all it does is create a file.  If you'd like to know more about .desktop files, you can take a look at http://standards.freedesktop.org/deskto … ec/latest/


:wq

Offline

#8 2009-03-15 18:52:35

XAD
Member
From: Roskilde, Denmark
Registered: 2008-06-16
Posts: 23

Re: CDrom drive in Wine

Thanks, this works a treat - Have a little trouble assigning the Icon but I should be able to solve that.

Only issue now is the automount but I have seen a number of topics on that (re PCmanFM) and I trawl those before creating a new    topic

Offline

Board footer

Powered by FluxBB