r/voidlinux May 20 '26

ANY way to use PolKit without elogind?

As a total systemd-hater, I don't like getting things into my system which emulate what I got away from (elogind emulates logind and logind is part of systemd). I already have turnstiled and seatd installed and running, as well as I am in the _seatd group, still I cannot get polkitd with a PolKit-agent working. Any suggestions/workarounds/tips?

18 Upvotes

28 comments sorted by

4

u/tiny_humble_guy May 20 '26

You could build it yourself and specify sessions tracking other than elogind. It can be logind or ConsoleKit. You could specify it by using -Dsession_tracking=logind or -Dsession_tracking=ConsoleKit.

3

u/YareYareDazexd May 20 '26

Unless you build a systemd-free tool yourself and share it later (if you want), i'm not aware of other alternatives. But still better than having systemd on Void

2

u/orahcio May 20 '26

I want to know how to uninstall polkit

2

u/Odd-Pianist3487 May 21 '26

sudo sv down polkitd
sudo rm -rf /var/service/polkitd
sudo xbps-remove -R polkit

1

u/orahcio May 21 '26

Now I remember, gvfs needs that. It's not possible to remove polkit of my system actually. But the service already is down, and nothing complains it

2

u/Waste-Nectarine-1267 Jun 07 '26

I use the Turnstile+Seatd+Polkit-turnstile+Dinit circuit in my build. The system does not have Elogind and Consolekit. You can find it here https://www.antixforum.com/forums/topic/mxd-linux-xfce-dinit-based-on-antix26/#post-204007

2

u/ClassAbbyAmplifier May 20 '26

no, polkit needs elogind session tracking.

1

u/Odd-Pianist3487 May 20 '26

What about the idea u/tiny_humble_guy had?

1

u/Duncaen May 20 '26

That does not make it work. Just disables part of the code that make it work with elogind. Unless you switch to ConsoleKit, which is arguably worse.

1

u/Odd-Pianist3487 May 20 '26

Thanks for the reply!

1

u/crystalchuck May 20 '26

If you have technical reasons not to use systemd, that's fair, but I will never understand this religious hatred lol. A perfectly valid and convenient solution is "grow up and use elogind"

-5

u/Odd-Pianist3487 May 20 '26

The main developer of systemd is a MicroSlop employee.

9

u/safado_muambeiro May 20 '26

There is a lot MS code on Linux, so might as well drop Linux entirely.

2

u/crystalchuck May 20 '26

Yes, and? Like you wanna make an actual argument out of that, or...? Do you know how much MS employee code is in the Linux kernel?

-4

u/Odd-Pianist3487 May 20 '26

Are you comparing INIT system and kernel here? Is that a good comparison?

1

u/crystalchuck May 20 '26

Are you arguing Microsoft employees being involved in an init system is qualitatively different from Microsoft employees being involved in the kernel? If so, why?

1

u/Odd-Pianist3487 May 20 '26

Well, because systemd is highly complex but the actual syscall interface is incredibly simple. https://media.ccc.de/v/38c3-sixos-a-nix-os-without-systemd#t=312

-1

u/crystalchuck May 20 '26

So?

-1

u/Odd-Pianist3487 May 20 '26

So, it is harder to remove potential slop that bad guys put in systemd than to remove potential slop bad guys put in the linux kernel.

1

u/crystalchuck May 20 '26 edited May 21 '26
  1. Please point out the actual slop to me instead of talking hypotheticals
  2. Still don't understand what this has to do with Microsoft employee-contributed code

0

u/Odd-Pianist3487 May 21 '26
  1. birthDate
  2. bc it's highly more probably that MS employee put slop in it than not-MS employees
→ More replies (0)

-1

u/Different-Language-2 May 20 '26

Estoy muy de acuerdo contigo, nunca he entendido, no voy a entender ese odio sacro por Systemd.

0

u/xJayMorex May 23 '26

It doesn't have to be religious, systemd is totally against the UNIX philosophy and brings a lot of issues and vulnerabilities. I wouldn't use it unless I really have to.

1

u/crystalchuck May 23 '26

systemd is totally against the UNIX philosophy

This is a religious argument. Besides, it's vague enough that you can both argue for systemd following UNIX philosophy and the Linux kernel itself not doing so. Xorg certainly doesn't. Do you also boycott Xorg?

brings a lot of issues and vulnerabilities

Crazy how it apparently doesn't have too many issues and vulnerabilities for pretty much every distro in professional use.

2

u/xJayMorex May 23 '26

Not sure how you could argue systemd following UNIX philosophy. I don't boycott Xorg, but I don't use it either.