On 6/20/23 14:03, zithro wrote:
On 20 Jun 2023 18:21, Charles Curley wrote:
On Tue, 20 Jun 2023 16:52:47 +0200
Anders Andersson <pipat...@gmail.com> wrote:
I'm running Gnome. Maybe synaptic is not compatible with xfce?
Nope. I have synaptic running here with xfce4 on Bullseye.
synaptic 0.90.2 amd64
xfce4 4.16 all
Correct me if I'm wrong, but last I tried synaptic manually (on XFCE), I
had to use pkexec and NOT sudo.
It doesn't start from a root xterm either.
This remark is for Gene, who only uses variations of "sudo".
$ which synaptic-pkexec
/usr/bin/synaptic-pkexec
$ /usr/bin/synaptic-pkexec
"synaptic-pkexec" is what's needed if not using the distro-provided
shortcut.
Here, the shortcut in XFCE under "System -> Synaptic package manager"
effectively launches "synaptic-pkexec".
synaptic-pkexec is a shell script containing:
pkexec "/usr/sbin/synaptic" "$@"
Another note, if you use pkexec directly, this won't work :
$ pkexec synaptic
Cannot run program synaptic: No such file or directory
But this is OK
$ pkexec /usr/sbin/synaptic
paste:
gene@coyote:/usr/local/bin$ pkexec /usr/sbin/synaptic
Invalid MIT-MAGIC-COOKIE-1 keyUnable to init server: Could not connect:
Connection refused
Failed to initialize GTK.
Probably you're running Synaptic on Wayland with root permission.
Please restart your session without Wayland, or run Synaptic without
root permission
which might work if it wasn't for the invalid magic cookie, so how do I
get an accceptable version of that?
Cheers, Gene Heskett.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
Genes Web page <http://geneslinuxbox.net:6309/>