public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Cannot start xfce from lightdm
       [not found] <20201101123259.GA847.ref@reblochon>
@ 2020-11-01 12:32 ` François-Xavier Carton
  2020-11-01 13:39   ` netfab
  0 siblings, 1 reply; 4+ messages in thread
From: François-Xavier Carton @ 2020-11-01 12:32 UTC (permalink / raw
  To: gentoo-user

Hi,

I'm installing gentoo on the family computer, and I'm opting for lightdm
and xfce (for ease of use for non-experienced users). As per the wiki, I
emerged the packages, enabled and started the dbus and xdm services.
Lightdm starts fine, but xfce fails to start with the error: "Unable to
contact settings server; Unable to connect: connection refused". A few
things I tried:

- starting another DE (dwm) from lightdm: works
- starting xfce from startx: works
- starting xfce from a running x server (via terminal emulator): works
- remerging xorg with "elogind -suid": still the same (for simplicity
  I'd prefer "suid -elogind" though)

What I noticed:
- the error seems to be dbus-related (from the source code, it seems
  xfconf_init fails, which in turns calls dbus things); however I double
  checked that dbus is enabled and started.
- when xfce starts successfully (eg. via startx), it starts
  xfce4-session with dbus-launch (not sure where that happens; I see no
  mentions of it in startxfce4 nor /etc/xdg/xcfe4/xinitrc), whereas when
  started from lightdm, xfce4-session is started normally (without
  dbus-launch)

I'm not used to graphical login managers, and I'm running out of ideas.
Does anyone have some idea of what I could try to get xfce running from
lightdm?

Thanks,
-François-Xavier


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Cannot start xfce from lightdm
  2020-11-01 12:32 ` [gentoo-user] Cannot start xfce from lightdm François-Xavier Carton
@ 2020-11-01 13:39   ` netfab
  2020-11-01 15:18     ` François-Xavier Carton
  0 siblings, 1 reply; 4+ messages in thread
From: netfab @ 2020-11-01 13:39 UTC (permalink / raw
  To: gentoo-user

Le 01/11/20 à 13:32, François-Xavier Carton a tapoté :
> I'm not used to graphical login managers, and I'm running out of
> ideas. Does anyone have some idea of what I could try to get xfce
> running from lightdm?

It works fine here © (xfce + lightdm).

Do you have :
> session-wrapper=/etc/lightdm/Xsession

Enabled in /etc/lightdm/lightdm.conf ?

/etc/lightdm/Xsession is sourcing
	/etc/X11/xinit/xinitrc.d/80-dbus

which runs dbus-launch.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Cannot start xfce from lightdm
  2020-11-01 13:39   ` netfab
@ 2020-11-01 15:18     ` François-Xavier Carton
  2020-11-01 16:47       ` [gentoo-user] Cannot start xfce from lightdm [solved] François-Xavier Carton
  0 siblings, 1 reply; 4+ messages in thread
From: François-Xavier Carton @ 2020-11-01 15:18 UTC (permalink / raw
  To: gentoo-user

On Sun, Nov 01, 2020 at 02:39:02PM +0100, netfab wrote:
> Le 01/11/20 ?? 13:32, Fran??ois-Xavier Carton a tapot?? :
> > I'm not used to graphical login managers, and I'm running out of
> > ideas. Does anyone have some idea of what I could try to get xfce
> > running from lightdm?
> 
> It works fine here ?? (xfce + lightdm).
> 
> Do you have :
> > session-wrapper=/etc/lightdm/Xsession
> 
> Enabled in /etc/lightdm/lightdm.conf ?
> 
Yes. I did not edit this, so I think it's the default config.

> /etc/lightdm/Xsession is sourcing
> 	/etc/X11/xinit/xinitrc.d/80-dbus
> 
> which runs dbus-launch.
> 
Ah, this might be the problem. I don't have that file, I only have
00-xhost in there. I checked the dbus ebuild, I need to enable the X use
flag. Will do, and report back :) Thanks for the pointer!


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Cannot start xfce from lightdm [solved]
  2020-11-01 15:18     ` François-Xavier Carton
@ 2020-11-01 16:47       ` François-Xavier Carton
  0 siblings, 0 replies; 4+ messages in thread
From: François-Xavier Carton @ 2020-11-01 16:47 UTC (permalink / raw
  To: gentoo-user

On Sun, Nov 01, 2020 at 04:18:23PM +0100, François-Xavier Carton wrote:
> Ah, this might be the problem. I don't have that file, I only have
> 00-xhost in there. I checked the dbus ebuild, I need to enable the X use
> flag. Will do, and report back :) Thanks for the pointer!
> 
Yes, that solved the problem. Thanks a lot!


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-11-01 16:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20201101123259.GA847.ref@reblochon>
2020-11-01 12:32 ` [gentoo-user] Cannot start xfce from lightdm François-Xavier Carton
2020-11-01 13:39   ` netfab
2020-11-01 15:18     ` François-Xavier Carton
2020-11-01 16:47       ` [gentoo-user] Cannot start xfce from lightdm [solved] François-Xavier Carton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox