On Tue, Jun 20, 2023 at 10:51:13AM -0400, gene heskett wrote:

[...]

> Easy:
> gene@coyote:~/Pictures$ sudo synaptic
> [sudo] password for gene:
> Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect:
> Connection refused
> Failed to initialize GTK.

Gene,

this is just not going to work. Never. Not under Wayland, not
under X, not at all.

> Probably you're running Synaptic on Wayland with root permission.
> Please restart your session without Wayland, or run Synaptic without root
> permission
> gene@coyote:~/Pictures$ sudo -E synaptic
> Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect:
> Connection refused
> Failed to initialize GTK.

This /might/ work under some "old" X setups (mine is one). It won't
work under yours.

The way graphical applications do sudo things for the young'uns like
you (that means: using one graphical desktop environment, be it XFCE,
Gnome, Mate, etc) is that synaptic asks you for your credentials once
it's up to do something where it needs some.

If it doesn't, it is misconfigured.

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature

Reply via email to