You are not logged in.

#1 2015-01-11 14:07:41

portalin
Member
Registered: 2015-01-11
Posts: 11

XFDesktop not running, FAILED TO CONNECT TO SESSION MANAGER [SOLVED]

Hi all, new to the arch forums, I've recently installed arch with xfce4, and I've been having trouble changing the desktop background as the GUI for it will flash up then close instantly. I tried to reload xfdesktop with xfdesktop --reload, this returns "xfdesktop is not running". Running $ sudo xfdesktop returns:

(xfdesktop:5211): GLib-WARNING **: (gerror.c:381):g_error_new_valist: runtime check failed: (domain != 0)
Failed to connect to session manager: Failed to connect to the session manager: SESSION_MANAGER environment variable not defined
xfdesktop: cairo-scaled-font.c:459: _cairo_scaled_glyph_page_destroy: Assertion `!scaled_font->cache_frozen' failed.

Also, when I look in xfce4-session-settings, all xfce applications are running but xfdesktop isn't there.
Thanks in advance

Last edited by portalin (2015-01-11 15:12:36)

Offline

#2 2015-01-11 14:44:54

Kinokoio
Member
Registered: 2014-10-29
Posts: 33
Website

Re: XFDesktop not running, FAILED TO CONNECT TO SESSION MANAGER [SOLVED]

Are you running it from a window manager or from a tty login?
Is xfdesktop installed?


----- Think out of the Box. ------
Archer since 2010.
My projects: http://github.com/kinokoio

Offline

#3 2015-01-11 14:48:03

portalin
Member
Registered: 2015-01-11
Posts: 11

Re: XFDesktop not running, FAILED TO CONNECT TO SESSION MANAGER [SOLVED]

Kinokoio wrote:

Are you running it from a window manager or from a tty login?
Is xfdesktop installed?

Yup, xfdesktop is installed, I'm running it from a window terminal emulator from inside XFCE, I'll try it from a tty now.

Offline

#4 2015-01-11 14:50:01

portalin
Member
Registered: 2015-01-11
Posts: 11

Re: XFDesktop not running, FAILED TO CONNECT TO SESSION MANAGER [SOLVED]

I just tried to start xfdesktop from a tty, and it just gives: Failed to parse arguments: display not started or something to that effect.

Offline

#5 2015-01-11 14:53:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: XFDesktop not running, FAILED TO CONNECT TO SESSION MANAGER [SOLVED]

portalin wrote:

Running $ sudo xfdesktop returns ...

Prepending sudo to random commands will eventually break your system.  Don't do it.

In this case it simply prevents it from working as the session manager is running for your user not for the root user, so this command has nothing to connect to.  Remove 'sudo'.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2015-01-11 14:54:17

Alad
Wiki Admin/IRC Op
From: Bagelstan
Registered: 2014-05-04
Posts: 2,407
Website

Re: XFDesktop not running, FAILED TO CONNECT TO SESSION MANAGER [SOLVED]

#2 meant if you use a display manager or xinitrc. If latter, make sure you copied the sample file from /etc/skel/.xinitrc, and added "exec startxfce4" at the bottom.

edit: missed Trilby's post

Last edited by Alad (2015-01-11 14:55:10)


Mods are just community members who have the occasionally necessary option to move threads around and edit posts. -- Trilby

Offline

#7 2015-01-11 14:55:36

portalin
Member
Registered: 2015-01-11
Posts: 11

Re: XFDesktop not running, FAILED TO CONNECT TO SESSION MANAGER [SOLVED]

Trilby wrote:
portalin wrote:

Running $ sudo xfdesktop returns ...

Prepending sudo to random commands will eventually break your system.  Don't do it.

In this case it simply prevents it from working as the session manager is running for your user not for the root user, so this command has nothing to connect to.  Remove 'sudo'.

If I run just $ xfdesktop I then get the same error

(xfdesktop:2166): GLib-GObject-CRITICAL **: g_value_get_uint: assertion 'G_VALUE_HOLDS_UINT (value)' failed
xfdesktop: cairo-scaled-font.c:459: _cairo_scaled_glyph_page_destroy: Assertion `!scaled_font->cache_frozen' failed.
Aborted (core dumped)

Offline

#8 2015-01-11 15:01:53

Fixxer
Member
From: Poland
Registered: 2011-08-29
Posts: 210

Re: XFDesktop not running, FAILED TO CONNECT TO SESSION MANAGER [SOLVED]

Run system in text mode and remove configuration files:

rm -rf .config/xfce4
rm -rf .config/xfce4-session

Make sure that display manager is enabled, e.g.:

su -c 'systemctl enable lxdm'

Reboot your computer.

Offline

#9 2015-01-11 15:12:00

portalin
Member
Registered: 2015-01-11
Posts: 11

Re: XFDesktop not running, FAILED TO CONNECT TO SESSION MANAGER [SOLVED]

Fixxer wrote:

Run system in text mode and remove configuration files:

rm -rf .config/xfce4
rm -rf .config/xfce4-session

Make sure that display manager is enabled, e.g.:

su -c 'systemctl enable lxdm'

Reboot your computer.

This worked! Thanks very much, xfdesktop works fine now.

Offline

#10 2015-01-11 15:30:01

Kinokoio
Member
Registered: 2014-10-29
Posts: 33
Website

Re: XFDesktop not running, FAILED TO CONNECT TO SESSION MANAGER [SOLVED]

To start from tty (without display manager) run the command startxfce4


----- Think out of the Box. ------
Archer since 2010.
My projects: http://github.com/kinokoio

Offline

Board footer

Powered by FluxBB