Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 906976

Summary: x11-apps/xinit-1.4.2: calling xauth can takes long time to execute
Product: Gentoo Linux Reporter: Morteza <mr.oneacer>
Component: Current packagesAssignee: Gentoo X packagers <x11>
Status: UNCONFIRMED ---    
Severity: normal CC: sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Morteza 2023-05-23 08:49:05 UTC
hey,
it takes approximately 2s for startx to loop over xauth list
```
for displayname in $authdisplay $hostname$authdisplay; do  
     authcookie=`xauth list "$displayname" \
     | sed -n "s/.*$displayname[[:space:]*].*[[:space:]*]//p"` 2>/dev/null;
```
it's probably noticeable because I use musl which is slower?
this patch https://gitlab.archlinux.org/archlinux/packaging/packages/xorg-xinit/-/blob/main/fs25361.patch seems to be a unrelated but it fixed the issue for me

Reproducible: Always