!rGlCMuXgAhgEpdvJUz:nixos.org

NixOS KDE

209 Members
56 Servers

Load older messages


SenderMessageTime
25 Apr 2026
@k900:0upti.meK900How are you running it?13:48:04
@mr-qubo:matrix.orgmr-quboOh, wait, it doesn't work from root shell.13:48:11
@mr-qubo:matrix.orgmr-qubo* Oh, wait, it doesn't work from root shell. Works from user shell.13:48:21
@mr-qubo:matrix.orgmr-qubo kde-inhibit --power tail -f /dev/zero 13:48:53
@k900:0upti.meK900Well, the root shell part was important, yes13:49:12
@mr-qubo:matrix.orgmr-quboAny idea how to make it work?13:55:09
@k900:0upti.meK900Don't run it as root?13:55:34
@k900:0upti.meK900It needs to talk to your user session13:55:39
@mr-qubo:matrix.orgmr-quboNot an option for me. I need to the command itself as root.13:56:23
@mr-qubo:matrix.orgmr-qubo* Not an option for me. I need to the command itself as root. And I don't use sudo.13:56:44
@mr-qubo:matrix.orgmr-qubo* Not an option for me. I need to run the command itself as root. And I don't use sudo.13:56:56
@k900:0upti.meK900Well13:58:38
@k900:0upti.meK900You can use systemd-inhibit which will take a system wide lock13:58:46
@k900:0upti.meK900But also, that sounds stupid13:58:54
@k900:0upti.meK900But also, I guess you can use run0 which you have anyway13:59:01
@k900:0upti.meK900And you can't get rid of13:59:08
@mr-qubo:matrix.orgmr-quboWhat's the difference with system wide lock, versus what kde-inhibit does?14:10:46
@mr-qubo:matrix.orgmr-qubo Oh, I didn't know about run0. Looks like something worth reading about. 14:11:28
@mr-qubo:matrix.orgmr-qubo I knew about pkexec, but it had kinda but UX for running cli commands. 14:12:46
@mr-qubo:matrix.orgmr-qubo * I knew about pkexec, but it has kinda but UX for running cli commands. 14:12:52
@k900:0upti.meK900 One is system wide, one is scoped to your session 14:14:16
@mr-qubo:matrix.orgmr-quboYeah, but both prevent my computer from sleeping? Is there any difference in the behaviour?14:45:16
@k900:0upti.meK900There are probably some subtle details14:58:29
@k900:0upti.meK900But systemd-inhibit can work for this14:58:34
@mr-qubo:matrix.orgmr-qubo Hi! I want to configure it so that systemd asks for password directly in terminal, instead of showing up floating window. On Arch Linux I was able to do it by removing polkit-kde-agent-1. Unfortunately, on nixos polkit-kde-agent-1 package is part of plasma's requiredPackages, not optionalPackages, so I can't easily remove it with environment.plasma6.excludePackages. Any ideas what should I do? 21:48:14
@k900:0upti.meK900That's a bad idea generally22:23:45
@mr-qubo:matrix.orgmr-quboYou mean, asking for a password in terminal is a bad idea?22:29:46
@mr-qubo:matrix.orgmr-quboOr disabling polkit agent completely is a bad idea?22:29:59
@k900:0upti.meK900Disabling the agent completely is a bad idea22:37:40
@mr-qubo:matrix.orgmr-quboYou're right I think. I'll patch systemd to ask for password in tty instead.22:54:25

There are no newer messages yet.


Back to Room ListRoom Version: 9