Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208257 - At startup Xfce4 complains that thunar or other trash compatible file mgr needs to be installed
Summary: At startup Xfce4 complains that thunar or other trash compatible file mgr nee...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Project Gentopia
URL: http://bugzilla.xfce.org/show_bug.cgi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-31 00:37 UTC by aal
Modified: 2008-02-01 03:07 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aal 2008-01-31 00:37:15 UTC
When xfce has loaded the error:
"Unable to contact the Xfce Trash service. Make sure you have a file manager installed that supports the Xfce Trash service, such as Thunar"
This appears before any apps have loaded.

I have Thunar installed with "trash-plugin" enabled.

No other errors were noticed.
Comment 1 aal 2008-01-31 00:41:28 UTC
I fixed this by creating:
/etc/dbus-1/session-local.conf

containing the lines 

<busconfig>
  <servicedir>/usr/share/dbus-1/services</servicedir>
</busconfig>



this file was not created during the emerge of dbus
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-01-31 08:34:45 UTC
Can't reproduce this at all. Do you have dbus running? Which dbus version? emerge --info?
Comment 3 aal 2008-01-31 13:05:05 UTC
(In reply to comment #2)
> Can't reproduce this at all. Do you have dbus running? Which dbus version?
> emerge --info?
> 

I am running
dbus 1.0.2-r2

This issue was resolved by creating service-local.conf as described above.
I made no other changes to fix this.
Comment 4 aal 2008-01-31 13:11:47 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Can't reproduce this at all. Do you have dbus running? Which dbus version?
> > emerge --info?
> > 
> 
> I am running
> dbus 1.0.2-r2
> 
> This issue was resolved by creating service-local.conf as described above.
> I made no other changes to fix this.

I am sorry, I did not mean to click commit, here is the rest of the reply.
Dbus is not added to default runlevel. I did not start it either.
 All I did was make the above file.
> 

Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2008-01-31 14:39:05 UTC
That file doesn't need to exist because /etc/dbus-1/system.conf exists with the following in it:

<standard_system_servicedirs/>

Which evaluates to /usr/share/dbus-1/services/

But the problem stems from the fact that you didn't start the D-Bus init script and the D-Bus init script isn't in your runlevel, which means you ignored the instructions for emerging D-Bus.

    elog "To start the D-Bus system-wide messagebus by default"
    elog "you should add it to the default runlevel :"
    elog "\`rc-update add dbus default\`"

This means currently you're running with only a session bus and not a system bus. A session bus can not by default start any services that are located in /usr/share/dbus-1/services/ because those are system level services.

Merely add D-Bus to the proper runlevel and start it up and you'll have a system bus which will start system level services.
Comment 6 aal 2008-02-01 00:37:37 UTC
dbus was installed as a dep of xfce4 not as a direct choice by me

I had nothing to do with installing it and the xfce4 guide I did follow, gave no mention other than adding dbus to USE.
http://www.gentoo.org/doc/en/xfce-config.xml

I saw no use for hald based on the doc's description of what it was for.
As a result I did not add hal or dbus to USE.  

If I had consciously installed dbus I would have followed the dbus guide, I promise. :)

Thanks for clarifying the situation Doug. 

I removed the session-local.conf file, started dbus (/etc/init.d/dbus start) and started xfce.
I am getting the same error about trash again.

Is this due to hal not being installed?
Comment 7 Doug Goldstein (RETIRED) gentoo-dev 2008-02-01 01:26:23 UTC
Nope. HAL has nothing to do with it. This is purely xfce using D-Bus to communicate via the system bus. To be perfectly honest, I'm not sure why it's not a session activated app, why it's a system service but that's how the xfce programmers have done this. 
Comment 8 aal 2008-02-01 03:07:13 UTC
Since I had dbus out of USE when I orig emerged xfce4, I re-emerged thunar with USE="dbus".
I also do NOT have the file I had created in the dbus-1 directory.
With dbus running I started xfce and I no longer have the message.w00t!!

The Gentoo xfce guide does say to have dbus in global USE, but it does not say anything about starting dbus nor adding it to default runlevel.

I am glad to have learned what happened but the knowledge was not in the xfce doc.

Thanks again Doug