You are not logged in.

#1 2012-06-14 12:07:17

darnir
Member
Registered: 2011-12-21
Posts: 47

XFCE Errors in tty

I recently formatted my system, and re-installed Arch. This time I'm using XFCE4 as my DE instead of the bloated GNOME3.
Although my system is running fine, I noticed two errors that tend to come up on my tty as I run startxfce4 --with-ck-launch:

(xfsettingsd :605): xfsettingsd-WARNING **: Failed to get the _NET_NUMBER_OF_DESKTOPS property.
(xfdesktop:590): GLib-GIO-CRITICAL **: g_file_get_path: assertion 'G_IS_FILE (file)' failed

I want to know what these errors mean and how to rectify them.

Thanks!

Offline

#2 2012-06-14 12:18:07

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: XFCE Errors in tty

Try cleaning out the session cache (~/.cache/sessions) and see if that makes a difference.


Burninate!

Offline

#3 2012-06-14 12:19:35

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: XFCE Errors in tty

Number of desktops sounds to me like it could be related to the pager. You should probably disable multiple desktops if you don't use any.

But don't worry about it. Around 99% of the time they're harmless. You'll see a lot of these over the years.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#4 2012-06-14 18:32:08

darnir
Member
Registered: 2011-12-21
Posts: 47

Re: XFCE Errors in tty

@Gcool: I have already tried that. Didn't help. Thanks though..

@Dspider: As I mentioned, my system is working fine and I am not worrying about it. It's just I prefer keeping as many errors at bay as possible. And if not possible, atleast knowing more about what causes them. And no, since I use multiple desktops a little too often, I doubt I can disable them. But I will try and disable them awhile just to check if they solve the problem.

Is it possible that compiz / cairo-dock could have caused these? I had them installed, but removed them some time later. I tried my best to remove as many leftover config files of those as possible.

Offline

#5 2012-06-14 20:48:27

Bellum
Member
Registered: 2011-08-24
Posts: 230

Re: XFCE Errors in tty

darnir wrote:

It's just I prefer keeping as many errors at bay as possible. And if not possible, atleast knowing more about what causes them.

static guint
xfce_workspaces_helper_get_count (void)
{
    guint     result = 0;
    guchar   *data = NULL;
    gboolean  succeed;
    GdkAtom   cardinal_atom, type_returned;
    gint      format_returned;

    gdk_error_trap_push ();

    cardinal_atom = gdk_atom_intern_static_string ("CARDINAL");
    succeed = gdk_property_get (gdk_get_default_root_window (),
                                gdk_atom_intern_static_string ("_NET_NUMBER_OF_DESKTOPS"),
                                cardinal_atom,
                                0L, 1L,
                                FALSE, &type_returned, &format_returned, NULL,
                                &data);

    if (gdk_error_trap_pop () == 0
        && succeed
        && data != NULL
        && type_returned == cardinal_atom
        && format_returned == 32)
    {
        result = (guint) *data;
    }
    else
    {
        g_warning ("Failed to get the _NET_NUMBER_OF_DESKTOPS property.");
    }

    g_free (data);

    return result;
}

Not 100% sure, but it looks like the C equivalent of putting your entire function in a generic try/catch block. Basically "If this fails in any way, print an error and continue as usual. Don't think too hard about the where or the why". I wouldn't worry too much about it. tongue

As for the second one, who knows? I imagine it's exactly what it sounds like: g_file_get_path was passed something that wasn't a file.

Offline

Board footer

Powered by FluxBB