DBus and ConsoleKit

Forum rules
We don't support installations in VirtualBox, VMWare, qemu or others. We ignore posts about WINE, PlayOnLinux, Steam and Skype. We don't support btrfs, lvm, UEFI, side-by-side installations with GPT or dualboot with anything newer than Windows XP.
Google your problem first. Check the Wiki. Read the existing threads. It's okay to "hijack" an existing thread, yes! If your problem is not yet covered, open a new thread. To get the quickest possible help, mention the exact release codename in your post (uname -a is a good idea, too). Due to the lack of crystal balls, attach the output of lspci -nnk if you encounter hardware problems.
User avatar
elixir
Weight Watcher
Posts: 357
Joined: Fri Feb 21, 2014 8:25 am

DBus and ConsoleKit

Unread post by elixir » Fri Jul 31, 2015 9:55 pm

Hey grillers,

What are your opinions on ConsoleKit and DBus?

To my understanding, ConsoleKit is a framework that tracks users and login sessions, but this only applies to these processes in the X server. I have also read that is is used for multiuser systems but I do not have multiple people logging into my laptop frequently. I have noticed 15+ processes of the console-kit-daemon running when I execute it while starting the X server, but cannot figure out what the benefit to it is. A benefit to not having it is faster X server load times, which was never an issue to begin with.

Now DBus... After reading the entire wikipedia article, DBus is a mechanism that allows communication between programs concurrently. I am having a hard time understanding why this is useful, due to that fact that the GNU operating system programs already communicate with one another.

Are there really any advantages to programs? Educate me :D
Out of the corner of your eye you spot him... Shia LaBeouf.

https://www.youtube.com/watch?v=o0u4M6vppCI

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: DBus and ConsoleKit

Unread post by dkeg » Sat Aug 01, 2015 1:24 am

No advantages that I know of. Niether exist on my system. I know dunst requires dbus, probably b/c of that communicate b/t programs thing, but there are other solutions that I have found workable. It seems if you're not running a DE or login manager, than console-kit is useless.

remove them both and be happy.

Work hard; Complain less

User avatar
elixir
Weight Watcher
Posts: 357
Joined: Fri Feb 21, 2014 8:25 am

Re: DBus and ConsoleKit

Unread post by elixir » Sat Aug 01, 2015 5:32 am

I agree. Thank you for the advice, dkeg. It is much more cozy here now :)
Out of the corner of your eye you spot him... Shia LaBeouf.

https://www.youtube.com/watch?v=o0u4M6vppCI

User avatar
nova
applies for custom title
Posts: 49
Joined: Tue Dec 09, 2014 6:55 pm
Location: Planet 892-IV

Re: DBus and ConsoleKit

Unread post by nova » Sun Aug 02, 2015 9:29 pm

ConsoleKit is a redundant resource hog for my taste. I leave it and Dbus off my installs. DBus is also a dependency for network-manager. Like Dkeg stated alternatives are available.
difficile est saturam non scribere. nam quis iniquae
tam patiens urbis, tam ferreus, ut teneat se...

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: DBus and ConsoleKit

Unread post by machinebacon » Mon Aug 03, 2015 7:58 am

pure-WM BBQ releases don't come with either, and they work quite well OOTB, so don't bother if you don't need extras. If you stay in TTY, you definitely won't need them. I don't even remember which CLI programs depend on consolekit. Probably none. dbus, if needed, is started anyway by the application via kernel, now that it's implemented there as kdbus.
..gnutella..

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5878
Joined: Tue Sep 03, 2013 7:05 am

Re: DBus and ConsoleKit

Unread post by GekkoP » Mon Aug 03, 2015 8:26 am

^ On this note, I am in XFCE and although I have dbus, no trace of ConsoleKit here and everything is working fine.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: DBus and ConsoleKit

Unread post by machinebacon » Tue Aug 04, 2015 1:23 pm

^ Sounds logical, the only optional thing would be policykit for the GUI things that require elevated rights, since xfce4 has its own session manager. Thanks for confirming, I even remember that ck-session had a *negative* impact on the one-click-mounting in Thunar.
IIRC consolekit is used when some kind of session management for multiple users is required, those days some people used lxsession/lxsession-lite in Openbox for this.

So, IMO a short answer to the OP:
- optional: yes
- required: no
- recommended: absolutely not ;)

If a program needs this as dependency, flip a coin (search for an alternative program or eat the frog)
..gnutella..

User avatar
elixir
Weight Watcher
Posts: 357
Joined: Fri Feb 21, 2014 8:25 am

Re: DBus and ConsoleKit

Unread post by elixir » Thu Aug 06, 2015 6:37 am

I appreciate the advice from you all. Both have been purged with much more resources free inside the system. I am free :D
Out of the corner of your eye you spot him... Shia LaBeouf.

https://www.youtube.com/watch?v=o0u4M6vppCI

Post Reply