Pamac-cli, when invoked from the terminal, should prompt for password inside the terminal, no?
That used to be the case, but I didn’t use pamac for a while (tried yay and paru for some months but uninstalled both now) and now I want to use it again but this happens.
Any way to make it such that only pamac-gtk asks for polkit authentication, while pamac-cli asks for password inside the terminal (like yay and paru)?
System info:
OS: Manjaro Linux x86_64
Kernel: 5.10.10-1-MANJARO
Shell: zsh 5.8
DE: Xfce
WM: Xfwm4
Resolution: 1366x768
Host: Inspiron 3443 A11
CPU: Intel i5-5200U (4) @ 2.700GHz
GPU: NVIDIA GeForce 920M
GPU: Intel HD Graphics 5500
Memory: 7870MiB
I do use AUR rather often (that’s the point of using pamac-cli/yay/paru over pacman for me).
I’m mainly wanting to use these in my list of zsh aliases:
Ok, if there’s a “default” behaviour, there’s supposed to be a “custom” behaviour too, right? Can you (or someone else) please tell me how I can make it such that pamac-gtk uses GUI polkit and pamac-cli uses in-terminal authentication? What do I edit and in which config file?
I, too, would like what I understand @sage is wishing.
The password to be requested in the context of thee command. So if it was a GUI application, the password be requested in a GUI popup window. If it was requested for a terminal application, such as pamac the password be requested in the same terminal.
So, in other word, the same context. If I’ve got it right here. It just makes things easier.
Just as @Mirdarthos suggested, I’d like my terminal apps to stay in the terminal.
It is simply unnatural, absurd, unintuitive, counterproductive, inconvenient and intrusive that a command line application should cause a GUI to popup in my face when I’m working in the terminal. I believe there should be a way to set pamac-cli to auth inside the terminal, without disabling GUI auth for pamac-gtk. It just makes more sense.
If I want GUI, I will use pamac-gtk and if I want CLI, I will use pamac-cli.
GUI should stay GUI and CLI should stay CLI.
If the remote system has a polkit agent installed it will use that, if I understand it correctly.
Which means, that if I SSH into the remote system and run pamac-cli, it will present a polkit window on the remote machine, which I can’t see when using SSH.
Ofcourse, if this is not the case and it uses the SSH session to present the password, then this use-case is not valid.
Whatever the use-case may be, I think a single line in some config file like PAMAC_CLI_USE_POLKIT_GUI = true/false would be really convenient. It is quite annoying that while I’m using a terminal app, it pops out a GUI in my face (flashing changes is bad for the eyes too). This shouldn’t be the case for any terminal app. It makes no sense as a default unless we think only about newbies (in which case it’s still absurd), but it’s worse that I don’t even have the choice to turn it off.
Just for the record, I can confirm the behavior is not abnormal when using SSH. It asks for password in the SSH terminal as is natural. That’s Marvelous.
Still, forcing such an inconvenient and inconsistent UX on the users is just sad…
At least please give us a config toggle
I’m not sure if something in my installation is messed up or what but since the change to use the graphical polkit agent for authentication when using pamac it asks me every time via the popup to enter my password but since I’m mostly using Yakuake for quick cli stuff like pamac install xyz after I enter my password the popup is closed but the window focus is not automatically returned to Yakuake.
Obviously this wouldn’t happen if I did not have to use the graphical polkit agent from inside a Terminal.
It would be great to have an option to disable the graphical polkit agent usage for pamac.
I found a partial solution to that - using i3 instead of xfwm4 as the window manager. Now I still have mouse focus but the drop-down terminal doesn’t disappear when pamac acts over-smart.
It’s not a “solution” but rather a hacky workaround that isn’t suitable for inexperienced users.
As far as I’m aware this is still the default behaviour and it is still a nuisance. I’ve started killing the polkit-kde-authentication-agent processes when working in order to get a sensible password prompt for the duration and I don’t think that’s exactly the smartest way to handle this.
Either I can disable focus stealing, mouse over to the password GUI, type it in, hope the terminal regains focus when it closes and if not then alt-tab back to it.
Or i can allow focus stealing, type blindly into the password box because it takes focus but appears hidden behind yakuake, hit enter and hope that I didn’t just send my user pass to a chat window or other program that stole focus while i was typing instead by accident.
It’s made even worse because polkit doesn’t even have an authentication grace period like sudo does, it pops open every single flipping time.