Created attachment 144053 [details]
With this patch, xdm works again.
When loging on xfce4 from xdm, after login the xfce4 don't runs and xdm is back again.
If you use Xfce, you should rather use x11/slim or x11/gdm. Consolekit is required for xfce4-session.
Oliver, xdm is a perfectly cable login-manager and there is no reason xfce4 should not be working with it.
The solution is proposed here:
Following the example given over there, I modified my own ~/.xsession to initialize dbus before launching startxfce4:
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]
eval `dbus-launch --sh-syntax --exit-with-session`
exec ...... startxfce4
With the above work-around, I am able to login now, but the xfce4 port should have a new patch added as a fix to make work-around unnecessary.
The following comments were lost with the 2015-01-07 Bugzilla incident:
> What is the status of this? Is the solution proposed by Mikhail working for
> In work in progress Xfce's FAQ , , there's solution (workaround, question
> #2) if someone wants to use Xdm with Xfce.
> I won't patch xinitrc, because it breaks session and other applications
> targeted 4.11. Xfce works fine with polkit, (even sysutils/polkit is not good
> shape). Patch pointed by Mikhail is xinitrc used with Xfce <= 4.8, and it's not
> approved by upstream.
>  https://reviews.freebsd.org/D1305
> Should this bug assigned to the Xfce team then? So you can close it when D1305
> is committed.
>> I won't patch xinitrc, because it breaks session and other applications
>> targeted 4.11.
> I'm sorry, I can not understand the above. Are you talking about the
> Maybe, the same hack can be placed into the startxfce4 script itself?
>> not approved by upstream.
> Well, it is not rejected by upstream either :-)
> Yes, I'm talking about /usr/local/etc/xdg/xfce4/xinitrc file. Xdm needs this
> I disagree to modify startxfce4 script. The best solution is to modify
> $HOME/.xinitrc only.
> In the FAQ, there's part how to launch Xfce, and even with SLiM and non UTF-8
> encoding .xinitrc must be changed.
> Re-assign to the Xfce team
This can work also. Edit the file
And add this line:
See PR#211624 for the fix.