[Solution] Authorization required, but no authorization protocol specified

If someone should get the same error.

:: (V)iew, (M)erge, (S)kip, (R)emove pacnew, (O)verwrite with pacnew, (Q)uit: [v/m/s/r/o/q] 
Authorization required, but no authorization protocol specified

After install "xorg-xhost" problem are solved.

gparted
localuser:root being added to access control list
GParted 1.5.0
configuration --enable-libparted-dmraid --enable-online-resize
libparted 3.5
localuser:root being removed from access control list

I don't know where the problem came from, I don't use Sway that often.

If someone has a more elegant solution, please post here. :slight_smile:

3 Likes

Will I add it into the packages list? I'm not sure what it does but it seems useful if used for Gparted.

No idea, I started gparted in terminal for demonstration, password prompt and running.
The output shows what xorg-xhost does. IDK how access control list work :smiley:

The problem was with

alias pacdif 'sudo -H DIFFPROG=meld pacdiff'

It needs sudo authorization, but dos not work before I installed xorg-xhost.

Maybe you could test with sudo -H DIFFPROG=meld pacdiff :slight_smile: ?

https://archlinux.org/packages/extra/x86_64/xorg-xhost/

Look at the package’s optional depends? :eyes: :slight_smile:

1 Like

I'm scratching my head as I noticed I do have xorg-host installed from the very first day I set the system up, I guess it was removed in later releases? (yeah, I said I would have reinstalled, I haven't yet).

1 Like

Hmm, xorg-xhost seems like a weird thing to install on Sway though--it pulls in some X11 libraries, too.

I wonder if this is another weird environment variable thing? For me, sudo gparted fails, but sudo -E gparted runs fine.

2 Likes

Not more in terminal, pop up for password, gparted open/run.

Edit: i3wm With -E I got the “dark” version, the other two are “light”

3 Likes