Wine apps load from Ubuntu application munu but not from cli

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
RLG23
Newbie
Newbie
Posts: 4
Joined: Sun Oct 10, 2010 8:43 pm

Wine apps load from Ubuntu application munu but not from cli

Post by RLG23 »

Hey,

I have just installed civilization IV and it's expansions in wine. After doing the required workarounds to make it run correctly it seems to work quite well.

However, I have come to realize that I am only able to launch it when using the automatic added menu entry in the wine folder Ubuntu menu. I have reviewed the command being executed and tried the command copied from the launcher as well as the shorter "standard" form. (WINEPREFIX=... wine /.../something.exe) But whenever I run it in a terminal I get all of the errors and then it exits.

This has not been the only exe to have this problem, but it is hit and miss. I have had this problem across multiple installs of both Ubuntu and wine so I assume it's just something I'm doing incorrectly.

Here's my setup:
Ubuntu: 10.04LTS
wine: v1.1.42
--fresh install with replacement of dx9 and dx10 dlls

I'm just paranoid that i may loose the launcher and be stuck with no way to launch my apps. :?
User avatar
dimesio
Moderator
Moderator
Posts: 13373
Joined: Tue Mar 25, 2008 10:30 pm

Re: Wine apps load from Ubuntu application munu but not from

Post by dimesio »

RLG23 wrote:I have reviewed the command being executed and tried the command copied from the launcher as well as the shorter "standard" form. (WINEPREFIX=... wine /.../something.exe) But whenever I run it in a terminal I get all of the errors and then it exits.
Did you cd to the program directory first? http://wiki.winehq.org/FAQ#run_from_terminal
RLG23
Newbie
Newbie
Posts: 4
Joined: Sun Oct 10, 2010 8:43 pm

Re: Wine apps load from Ubuntu application munu but not from

Post by RLG23 »

dimesio wrote: Did you cd to the program directory first? http://wiki.winehq.org/FAQ#run_from_terminal
I have tried that, as well as all of the other ways listed in the FAQ. All of them seem to give me the same problem.

Also, I forgot to mention! I am running this game using the virtual desktop feature. And it loads up using a desktop window when I click the loader, however when running the exe from term it does not load in a virtual desktop window, rather it loads in the standard desktop space. This leads me to think that the reason it is crashing is because the term command is not using the setting from winecfg but I'm not sure.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Wine apps load from Ubuntu application munu but not from

Post by vitamin »

RLG23 wrote:I have tried that, as well as all of the other ways listed in the FAQ. All of them seem to give me the same problem.
Where is that link that works? Post it's content here. And I'm not just talking about command. I'm talking about the entire content of that .desktop file.
RLG23
Newbie
Newbie
Posts: 4
Joined: Sun Oct 10, 2010 8:43 pm

Re: Wine apps load from Ubuntu application munu but not from

Post by RLG23 »

vitamin wrote:Where is that link that works? Post it's content here. And I'm not just talking about command. I'm talking about the entire content of that .desktop file.
Here is the content of the .desktop launcher:

#!/usr/bin/env xdg-open

[Desktop Entry]
Name=Sid Meier's Civilization 4 - Beyond the Sword
Exec=env WINEPREFIX="/home/ryan/.wine" wine "C:\\Program Files\\Firaxis Games\\Sid Meier's Civilization 4\\Beyond the Sword\\Civ4BeyondSword.exe"
Type=Application
StartupNotify=true
Path=/home/ryan/.wine/dosdevices/c:/Program Files/Firaxis Games/Sid Meier's Civilization 4/Beyond the Sword
Icon=/home/ryan/.local/share/icons/0a2b_civ4beyondsword.0.png


When I run the command in the Exec line (or any other wine command using that exe) I get some errors. But the final error is:

X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 159 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 1147
Current serial number in output stream: 1147

But when I launch the .desktop file I don't see the term output but it does not crash the program.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Wine apps load from Ubuntu application munu but not from

Post by vitamin »

RLG23 wrote:When I run the command in the Exec line (or any other wine command using that exe) I get some errors. But the final error is:

X Error of failed request: BadMatch (invalid parameter attributes)
You sure you running this as a regular user? Also have you tried disabling compiz (3d desktop effects)?
RLG23
Newbie
Newbie
Posts: 4
Joined: Sun Oct 10, 2010 8:43 pm

Re: Wine apps load from Ubuntu application munu but not from

Post by RLG23 »

vitamin wrote:You sure you running this as a regular user? Also have you tried disabling compiz (3d desktop effects)?
Yep, just as a normal user. And I retried everything using metacity as a window manager but I am receiving the same errors.
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Wine apps load from Ubuntu application munu but not from

Post by vitamin »

RLG23 wrote:Yep, just as a normal user. And I retried everything using metacity as a window manager but I am receiving the same errors.
Copy and paste the exact command(s) you are using to start your program and the output of 'pwd' command.
Locked