You are not logged in.

#1 2014-01-08 15:03:23

Atronach
Banned
Registered: 2010-11-13
Posts: 48

[SOLVED] Steam in Wine in its own X server?

Hi,
when I do:

LANG=en_US WINEPREFIX=/home/david/wine_AvP xinit /usr/bin/wine C:\\windows\\command\\start.exe C:\\users\\Public\\Start\ Menu\\Programs\\Steam\\Steam.lnk -- :2

...display goes black for a sec and then it returns to my desktop with no Steam running in an extra X server. I've only got this output from the shell:

X.Org X Server 1.14.5
Release Date: 2013-12-12
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.12.5-1-ARCH x86_64 
Current Operating System: Linux David-ArchLinux 3.12.6-1-ARCH #1 SMP PREEMPT Fri Dec 20 19:39:00 CET 2013 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=e4d1cdf9-26d9-43c3-a9d2-9d0540bc196a rw pcie_aspm=force loglevel=3 nmi_watchdog=0 acpi_backlight=vendor
Build Date: 06 January 2014  10:25:32PM
 
Current version of pixman: 0.32.4
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.2.log", Time: Wed Jan  8 15:54:29 2014
(==) Using config directory: "/etc/X11/xorg.conf.d"
setversion 1.4 failed
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
Loading extension NV-GLX
Loading extension NV-CONTROL
Loading extension XINERAMA
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
setversion 1.4 failed
xinit: connection to X server lost

waiting for X server to shut down XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":2"
      after 141 requests (140 known processed) with 0 events remaining.
.(EE) Server terminated successfully (0). Closing log file.

What's wrong? Thanks.

Last edited by Atronach (2014-01-13 16:47:48)

Offline

#2 2014-01-08 17:24:56

t0m5k1
Member
From: overthere
Registered: 2012-02-10
Posts: 324

Re: [SOLVED] Steam in Wine in its own X server?

I use the following 2 scripts to run apps in it's own X:

┌─(t0m5k1@b0x)-(3019/pts/0)-(07:21pm:08/01/14)-
└─>(%:~)
└─>> cat startBL 
#!/bin/sh
xinit ~/run_BL -- :1 -br
┌─(t0m5k1@b0x)-(3020/pts/0)-(07:21pm:08/01/14)-
└─>(%:~)
└─>> cat run_BL
#!/bin/bash
env WINEARCH=win32 WINEPREFIX="/home/t0m5k1/.local/share/wineprefixes/borderlands" wine "C:\Program Files\2K Games\Gearbox Software\Borderlands\Binaries\Borderlands.exe" 

use the above as example & see if it works, some app require that the pwd is where the exe is aswell


ROG Strix (GD30CI) - Intel Core i5-7400 CPU - 32Gb 2400Mhz - GTX1070 8GB - AwesomeWM (occasionally XFCE, i3)

If everything in life was easy, we would learn nothing!
Linux User: 401820  Steam-HearThis.at-Last FM-Reddit

Offline

#3 2014-01-08 18:51:10

Atronach
Banned
Registered: 2010-11-13
Posts: 48

Re: [SOLVED] Steam in Wine in its own X server?

That's strange,
when I run it from the script :

#!/bin/bash
env WINEARCH=win32 WINEPREFIX="/home/david/wine_AvP/" wine "C:\Program Files\Steam\Steam.exe"

...with the command like this:

xinit ~/Steam.sh -- :2

...it works but when I run it directly:

xinit env WINEARCH=win32 WINEPREFIX="/home/david/wine_AvP/" wine "C:\Program Files\Steam\Steam.exe" -- :2

... it does not and I receive this:

X.Org X Server 1.14.5
Release Date: 2013-12-12
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.12.5-1-ARCH x86_64 
Current Operating System: Linux David-ArchLinux 3.12.6-1-ARCH #1 SMP PREEMPT Fri Dec 20 19:39:00 CET 2013 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=e4d1cdf9-26d9-43c3-a9d2-9d0540bc196a rw pcie_aspm=force loglevel=3 nmi_watchdog=0 acpi_backlight=vendor
Build Date: 06 January 2014  10:25:32PM
 
Current version of pixman: 0.32.4
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.2.log", Time: Wed Jan  8 19:41:06 2014
(==) Using config directory: "/etc/X11/xorg.conf.d"
setversion 1.4 failed
Initializing built-in extension Generic Event Extension
Initializing built-in extension SHAPE
Initializing built-in extension MIT-SHM
Initializing built-in extension XInputExtension
Initializing built-in extension XTEST
Initializing built-in extension BIG-REQUESTS
Initializing built-in extension SYNC
Initializing built-in extension XKEYBOARD
Initializing built-in extension XC-MISC
Initializing built-in extension SECURITY
Initializing built-in extension XINERAMA
Initializing built-in extension XFIXES
Initializing built-in extension RENDER
Initializing built-in extension RANDR
Initializing built-in extension COMPOSITE
Initializing built-in extension DAMAGE
Initializing built-in extension MIT-SCREEN-SAVER
Initializing built-in extension DOUBLE-BUFFER
Initializing built-in extension RECORD
Initializing built-in extension DPMS
Initializing built-in extension X-Resource
Initializing built-in extension XVideo
Initializing built-in extension XVideo-MotionCompensation
Initializing built-in extension XFree86-VidModeExtension
Initializing built-in extension XFree86-DGA
Initializing built-in extension XFree86-DRI
Initializing built-in extension DRI2
Loading extension GLX
Loading extension NV-GLX
Loading extension NV-CONTROL
Loading extension XINERAMA
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
setversion 1.4 failed
xterm: Explicit shell already was /usr/bin/env
xterm: bad command line option "WINEARCH=win32"

usage:  xterm [-/+132] [-C] [-Sccn] [-T string] [-/+ah] [-/+ai] [-/+aw]
    [-b number] [-/+bc] [-bcf milliseconds] [-bcn milliseconds] [-bd color]
    [-/+bdc] [-bg color] [-bw number] [-/+cb] [-cc classrange] [-/+cjk_width]
    [-class string] [-/+cm] [-/+cn] [-cr color] [-/+cu] [-/+dc]
    [-display displayname] [-e command args ...] [-fa pattern] [-fb fontname]
    [-/+fbb] [-/+fbx] [-fd pattern] [-fg color] [-fi fontname] [-fn fontname]
    [-fs size] [-/+fullscreen] [-fw fontname] [-fwb fontname] [-fx fontname]
    [%geom] [#geom] [-geometry geom] [-help] [-/+hm] [-/+hold] [-iconic]
    [-/+ie] [-/+im] [-into windowId] [-/+j] [-/+k8] [-kt keyboardtype] [-/+l]
    [-/+lc] [-lcc path] [-leftbar] [-lf filename] [-/+ls] [-/+maximized]
    [-/+mb] [-mc milliseconds] [-/+mesg] [-/+mk_width] [-ms color] [-n string]
    [-name string] [-nb number] [-/+nul] [-/+pc] [-/+pob] [-report-fonts]
    [-rightbar] [-/+rv] [-/+rvc] [-/+rw] [-/+s] [-/+samename] [-/+sb]
    [-selbg color] [-selfg color] [-/+sf] [-/+si] [-/+sk] [-sl number] [-/+sm]
    [-/+sp] [-/+t] [-ti termid] [-title string] [-tm string] [-tn name] [-/+u8]
    [-/+uc] [-/+ulc] [-/+ulit] [-/+ut] [-/+vb] [-version] [-/+wc] [-/+wf]
    [-xrm resourcestring] [-ziconbeep percent]

Type xterm -help for a full description.

xinit: connection to X server lost

waiting for X server to shut down .(EE) Server terminated successfully (0). Closing log file.

I would prefer to figure out the right whole command without using a script so in the future I can always just quickly edit the appropriate .desktop file for convenient launching by clicking an icon in an application launcher.

Last edited by Atronach (2014-01-08 18:54:41)

Offline

#4 2014-01-08 19:02:00

Atronach
Banned
Registered: 2010-11-13
Posts: 48

Re: [SOLVED] Steam in Wine in its own X server?

Actually I should have look into the output first so I would know I should run it like this:

 xinit /usr/bin/env WINEARCH=win32 WINEPREFIX="/home/david/wine_AvP/" wine "C:\Program Files\Steam\Steam.exe" -- :2

...then it works, now I just have to figure out how to fix the original command in my 1^st post so the editing of the .desktop file is as trivial as possible.

Last edited by Atronach (2014-01-08 19:04:18)

Offline

#5 2014-01-13 16:46:47

Atronach
Banned
Registered: 2010-11-13
Posts: 48

Re: [SOLVED] Steam in Wine in its own X server?

So far I've managed to run the .desktop file by adding this:

WINEPREFIX="/home/david/.wine-AvP_Classic" xinit /usr/bin/wine C:\\\\Program\\ Files\\\\Steam\\\\Steam.exe -- :1

I'll mark the thread solved but I haven't achieved exactly what I want yet so if someone's got any idea about how to run Steam in Wine in a separate X server by "wrapping" the original command in the .desktop  file:

env WINEPREFIX="/home/david/.wine-AvP_Classic" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/david/.wine-AvP_Classic/dosdevices/c:/users/david/Start\\ Menu/Programs/Steam/Steam.lnk

...thus having wine calling C:\windows\command\start.exe first and then having start.exe calling the appripriate .lnk file, I'm open to suggestions. Plus I would be glad if someone could explain to me why there has to be so many backslashes in the .desktop file while running the command in the the shell does not require so many of them. Thanks.

Last edited by Atronach (2014-01-13 17:24:16)

Offline

#6 2014-01-14 14:23:41

korn36
Member
Registered: 2014-01-14
Posts: 111

Re: [SOLVED] Steam in Wine in its own X server?

Atronach wrote:

So far I've managed to run the .desktop file by adding this:

WINEPREFIX="/home/david/.wine-AvP_Classic" xinit /usr/bin/wine C:\\\\Program\\ Files\\\\Steam\\\\Steam.exe -- :1

I'll mark the thread solved but I haven't achieved exactly what I want yet so if someone's got any idea about how to run Steam in Wine in a separate X server by "wrapping" the original command in the .desktop  file:

env WINEPREFIX="/home/david/.wine-AvP_Classic" wine C:\\\\windows\\\\command\\\\start.exe /Unix /home/david/.wine-AvP_Classic/dosdevices/c:/users/david/Start\\ Menu/Programs/Steam/Steam.lnk

...thus having wine calling C:\windows\command\start.exe first and then having start.exe calling the appripriate .lnk file, I'm open to suggestions. Plus I would be glad if someone could explain to me why there has to be so many backslashes in the .desktop file while running the command in the the shell does not require so many of them. Thanks.

So you want to run this command using a desktop shortcut?
Try this as a command in the desktop file:
bash -c "yourcommandgoeshere"

Offline

Board footer

Powered by FluxBB