You are not logged in.

#1 2012-07-13 21:05:26

bambitheslug
Member
Registered: 2012-07-10
Posts: 6

Thunar very slow using ConsoleKit

I've been using Openbox for the past few days but without a file manager, so I finally got to that point in my installation today and chose Thunar. I can very easily and quickly run Thunar without ConsoleKit/PolicyKit from either within Openbox or as a daemon in

~/.xinitrc

.

However, the Wiki page at https://wiki.archlinux.org/index.php/Thunar mentions ConsoleKit is a new way of doing things and it seems like I should be trying to use it.

I installed ConsoleKit with this:

sudo pacman -S consolekit

I then changed my

~/.xinitrc

file to:

exec ck-launch-session dbus-launch openbox-session

The problem is that now, if I click on Thunar in the Openbox menu, it takes much longer to appear (10-15 seconds) whereas before it would appear instantly. I also believe there are error messages pertaining to this when I exit Openbox to the login terminal, but I don't have copy/paste available yet and I'll have to post a reply summarizing the errors (sorry, that's the best I can do right now).

I also really lack understanding about what ConsoleKit does and if it's even necessary. Can anybody please explain to me quickly what ConsoleKit is supposed to accomplish in this context? Also, does anyone have an idea why Thunar would be starting up so much slower with it? Finally, are there any real advantages to adding that to the X init file?

Thanks,
Dave

Offline

#2 2012-07-13 21:35:53

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: Thunar very slow using ConsoleKit

bambitheslug wrote:

However, the Wiki page at https://wiki.archlinux.org/index.php/Thunar mentions ConsoleKit is a new way of doing things and it seems like I should be trying to use it.

Don't believe everything you hear. Did you read the ConsokeKit page which says that it's no longer maintained? This reminds me of when the Xorg input developers got the bright idea of using HAL a few months before HAL was abandoned.

ConsoleKit is a library for elevating permissions that gives you more finely grained options than sudo. Since I only have one user anyway, I've never installed it. One advantage to using Thunar + ConsoleKit is that it lets you use Thunar's volume manager to mount USB drives without elevating as many permissions as running "sudo thunar" would. But IMO, better automounting solutions have existed for awhile, such as autofs.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#3 2012-07-13 21:43:54

bambitheslug
Member
Registered: 2012-07-10
Posts: 6

Re: Thunar very slow using ConsoleKit

Okay, so I tested it by starting X with and without the ck-launch-session and dbus-launch parts added. Both times, I simply right-clicked and chose Thunar from my Openbox menu, closed it, and ended the X/Openbox session. Both times I also had

thunar --daemon &

as the very first line in my

~/.xinitrc

. Without ConsoleKit, Thunar appeared as soon as I clicked it in Openbox, and upon ending the X session, there were no warnings or errors or anything, just the standard output.

With ConsoleKit, Thunar appeared after the long wait. I closed out of it and left Openbox, and this was in the output:

(Thunar:4693): GVFS-RemoteVolumeMonitor-WARNING **: remote volume monitor with dbus name org.gtk.Private.UDisks2VolumeMonitor is not supported

So I'm guessing GVFS is what was slowing it down. I have just about all dependencies and optional dependencies installed from the installation process. I just noticed the section in the Wiki talking about GVFS slowing it down, so I have a lead and will follow that, but in case anyone has had prior experience with that exact error, please let me know.

Thanks

EDIT: Just saw your reply Connor, thanks for the info! I actually did see the ConsoleKit page which kind of made me wonder, haha. I also don't need anything like that, so maybe I'll just forget about it. That being said, I am still curious why GVFS was having problems, but it doesn't come up when I run without ck, so I guess I don't really have to worry about it wink

Last edited by bambitheslug (2012-07-13 21:46:51)

Offline

#4 2012-07-14 14:17:37

Lennie
Member
From: Sweden
Registered: 2011-10-12
Posts: 146

Re: Thunar very slow using ConsoleKit

When you use Consolekit, Thunar searches the network for mountable filesystems to automount. That takes some time, and Thunar doesn't show up before that. One way to solve it is to disable automount, as found here. I have solved it in another way, but I absolutely can not remember how... (I use Consolekit, and I don't start Thunar daemon.)

Offline

Board footer

Powered by FluxBB