You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Two things, have you set dbus to listen on TCP, and have you tried vcXsrv?
Also, there is atm no official support for gui applications, and some require a number of hacks (for example, getting gtk applications running properly requires a few hacks, including the dbus fix and also running unity-settings-daemon)
With better support for AF_LOCAL socket, dbus seems to be happy and evolution also works. Fixes are moving fast to the release build. Keep an eye on the release notes.
Yeah the problem appears to be I'm not using dbus/tcp, just default settings. I'm using xming, which is working for many things; however, if you forward X over ssh, you have to use an IP address DISPLAY value instead of :0.0.
Looking forward to this fix. AF_LOCAL/AF_UNIX should provide a huge step up in general.
@bluefoxicy Don't forward X over ssh. Launch the X applications directly from your bash console in Windows with DISPLAY=:0 (remote X). The dbus fix was necessary because GTK applications all require dbus connections (I'm not positive, but one of the reasons they do this is because they connect to the GTK resources through dbus and the settings daemon through dbus).
WSL does not have access to graphics hardware (yet, although maybe we can hope for some kind translation layer for DRM to WDDM), so you're still going to need to do both X over TCP and AIGLX/Software rendering, and since vcXsrv does not properly implement texture_from_pixmap, most GTK3 is going to actually fall back to software rendering, with the substantial performance hit that entails.
Eventually, once they document and add security features on the Windows-side of the COM interface (right now, accessing it from the Windows side requires Administrator elevation), it will be possible to attach a special kind of daemon with a socket on the Linux side (imagine something like a bridge between dbus and the LXSS bus) and an X server on the Windows side (vcXsrv would have to learn how to interface with dbus, probably) to the LXSS bus, which would finally mean you no longer had to set DISPLAY=:0 (see Alex Ionescu's lxss repo on github for a proof of concept). However, the benefits of this would not be that huge in terms of performance by itself.
The team hasn't given any information about implementing a DRM layer for WSL, but maybe more information will emerge as the team begins to reach some of their internal milestones (since it looks like they are aiming to have a 1.0 release with Redstone 2 later this year, and therefore they are still really focusing hard on the non-graphical use case).
Just FYI that most or all of the AF_LOCAL fixes should be available starting build 14915. We would appreciate if you can try out the scenarios again without the dbus workaround and close out the issues. The only changes required to start the dbus daemon is in /etc/init.d/dbus, changing
Sunil Muthuswamy (@sunilmut) There is still a problem with some of these things relating to dbus authentication, so it might be necessary to still edit the dbus file to use dbus cookies instead of "external" authentication.
fpqc I wasn't aware of that issue with dbus, thanks for bringing it to my notice. Are these problems documented somewhere (or on some git hub post)? I would like to understand them better.
In the second thread, therealkenc mentions exactly what the problem is. It has to do with some kind of authentication used by dbus, and I'm not sure if it's a sockets problem or some kind of unimplemented syscall that does the authentication step.
I pinged Ken because maybe he'll give you the details on all of this stuff. I'm not even sure what it is, just that it can cause minor dbus-related problems. The thing is that it was something that was usually ignored when you turned dbus into tcp mode, since it automatically falls back to the cookie authentication in that case.
Sunil Muthuswamy (@sunilmut) this is #706. I mentioned d-bus here. That issue is also blocking other stuff, including some uses of GIO/GTK which I just discovered yesterday.
I should mention much of the point of the system bus is to talk to systemd on PID 1, which WSL doesn't have because of other missing surface (udev). So while you can connect to the system bus over AF_LOCAL with the steps you describe, the actual reason a program connects to it is not functional. Nice progress though.
Activity
fpqc commentedon Aug 4, 2016
Two things, have you set dbus to listen on TCP, and have you tried vcXsrv?
Also, there is atm no official support for gui applications, and some require a number of hacks (for example, getting gtk applications running properly requires a few hacks, including the dbus fix and also running unity-settings-daemon)
iz0eyj commentedon Aug 5, 2016
I think that at the present only XFCE runs fine (ignoring warnings).
sunilmut commentedon Aug 24, 2016
With better support for AF_LOCAL socket, dbus seems to be happy and evolution also works. Fixes are moving fast to the release build. Keep an eye on the release notes.
jrmoserbaltimore commentedon Aug 24, 2016
Yeah the problem appears to be I'm not using dbus/tcp, just default settings. I'm using xming, which is working for many things; however, if you forward X over ssh, you have to use an IP address DISPLAY value instead of :0.0.
Looking forward to this fix. AF_LOCAL/AF_UNIX should provide a huge step up in general.
fpqc commentedon Aug 25, 2016
@bluefoxicy Don't forward X over ssh. Launch the X applications directly from your bash console in Windows with DISPLAY=:0 (remote X). The dbus fix was necessary because GTK applications all require dbus connections (I'm not positive, but one of the reasons they do this is because they connect to the GTK resources through dbus and the settings daemon through dbus).
WSL does not have access to graphics hardware (yet, although maybe we can hope for some kind translation layer for DRM to WDDM), so you're still going to need to do both X over TCP and AIGLX/Software rendering, and since vcXsrv does not properly implement texture_from_pixmap, most GTK3 is going to actually fall back to software rendering, with the substantial performance hit that entails.
Eventually, once they document and add security features on the Windows-side of the COM interface (right now, accessing it from the Windows side requires Administrator elevation), it will be possible to attach a special kind of daemon with a socket on the Linux side (imagine something like a bridge between dbus and the LXSS bus) and an X server on the Windows side (vcXsrv would have to learn how to interface with dbus, probably) to the LXSS bus, which would finally mean you no longer had to set DISPLAY=:0 (see Alex Ionescu's lxss repo on github for a proof of concept). However, the benefits of this would not be that huge in terms of performance by itself.
The team hasn't given any information about implementing a DRM layer for WSL, but maybe more information will emerge as the team begins to reach some of their internal milestones (since it looks like they are aiming to have a 1.0 release with Redstone 2 later this year, and therefore they are still really focusing hard on the non-graphical use case).
iz0eyj commentedon Aug 25, 2016
Sunil Muthuswamy (@sunilmut) OK Sunil, please check also Socket Shutdown.
sunilmut commentedon Sep 9, 2016
Just FYI that most or all of the AF_LOCAL fixes should be available starting build 14915. We would appreciate if you can try out the scenarios again without the dbus workaround and close out the issues. The only changes required to start the dbus daemon is in
/etc/init.d/dbus, changingfrom:
DAEMON=/usr/bin/dbus-daemon UUIDGEN=/usr/bin/dbus-uuidgento:
DAEMON=/bin/dbus-daemon UUIDGEN=/bin/dbus-uuidgenthen:
sudo /etc/init.d/dbus startshould work.fpqc commentedon Sep 9, 2016
Sunil Muthuswamy (@sunilmut) There is still a problem with some of these things relating to dbus authentication, so it might be necessary to still edit the dbus file to use dbus cookies instead of "external" authentication.
sunilmut commentedon Sep 9, 2016
fpqc I wasn't aware of that issue with dbus, thanks for bringing it to my notice. Are these problems documented somewhere (or on some git hub post)? I would like to understand them better.
fpqc commentedon Sep 9, 2016
Sunil Muthuswamy (@sunilmut) Check here
#637
#482
In the second thread, therealkenc mentions exactly what the problem is. It has to do with some kind of authentication used by dbus, and I'm not sure if it's a sockets problem or some kind of unimplemented syscall that does the authentication step.
I pinged Ken because maybe he'll give you the details on all of this stuff. I'm not even sure what it is, just that it can cause minor dbus-related problems. The thing is that it was something that was usually ignored when you turned dbus into tcp mode, since it automatically falls back to the cookie authentication in that case.
therealkenc commentedon Sep 9, 2016
Sunil Muthuswamy (@sunilmut) this is #706. I mentioned d-bus here. That issue is also blocking other stuff, including some uses of GIO/GTK which I just discovered yesterday.
therealkenc commentedon Sep 9, 2016
I should mention much of the point of the system bus is to talk to
systemdon PID 1, which WSL doesn't have because of other missing surface (udev). So while you can connect to the system bus over AF_LOCAL with the steps you describe, the actual reason a program connects to it is not functional. Nice progress though.