| 25 Apr 2026 |
K900 | How are you running it? | 13:48:04 |
mr-qubo | Oh, wait, it doesn't work from root shell. | 13:48:11 |
mr-qubo | * Oh, wait, it doesn't work from root shell. Works from user shell. | 13:48:21 |
mr-qubo | kde-inhibit --power tail -f /dev/zero | 13:48:53 |
K900 | Well, the root shell part was important, yes | 13:49:12 |
mr-qubo | Any idea how to make it work? | 13:55:09 |
K900 | Don't run it as root? | 13:55:34 |
K900 | It needs to talk to your user session | 13:55:39 |
mr-qubo | Not an option for me. I need to the command itself as root. | 13:56:23 |
mr-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 | * Not an option for me. I need to run the command itself as root. And I don't use sudo. | 13:56:56 |
K900 | Well | 13:58:38 |
K900 | You can use systemd-inhibit which will take a system wide lock | 13:58:46 |
K900 | But also, that sounds stupid | 13:58:54 |
K900 | But also, I guess you can use run0 which you have anyway | 13:59:01 |
K900 | And you can't get rid of | 13:59:08 |
mr-qubo | What's the difference with system wide lock, versus what kde-inhibit does? | 14:10:46 |
mr-qubo | Oh, I didn't know about run0. Looks like something worth reading about. | 14:11:28 |
mr-qubo | I knew about pkexec, but it had kinda but UX for running cli commands. | 14:12:46 |
mr-qubo | * I knew about pkexec, but it has kinda but UX for running cli commands. | 14:12:52 |
K900 | One is system wide, one is scoped to your session | 14:14:16 |
mr-qubo | Yeah, but both prevent my computer from sleeping? Is there any difference in the behaviour? | 14:45:16 |
K900 | There are probably some subtle details | 14:58:29 |
K900 | But systemd-inhibit can work for this | 14:58:34 |
mr-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 | That's a bad idea generally | 22:23:45 |
mr-qubo | You mean, asking for a password in terminal is a bad idea? | 22:29:46 |
mr-qubo | Or disabling polkit agent completely is a bad idea? | 22:29:59 |
K900 | Disabling the agent completely is a bad idea | 22:37:40 |
mr-qubo | You're right I think. I'll patch systemd to ask for password in tty instead. | 22:54:25 |