Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spotify-wine cannot be installed any more with 'Administrator' account #487

Open
sir-ragna opened this issue Jul 14, 2019 · 1 comment

Comments

@sir-ragna
Copy link

commented Jul 14, 2019

The spotify-wine container doesn't work any more. Wine refuses to install with the error message. Please install Spotify using a normal account instead of an Administrator account.

image

I tried creating a new user account and run wine under that user but that doesn't seem to work.

root@153a68bfb4c7:~# adduser user
root@153a68bfb4c7:~# su - user -c "wine /usr/src/SpotifySetup.exe"
wine: cannot find L"Z:\\usr\\src\\SpotifySetup.exe"

This was fixed by adding +x and +r permissions to /usr/src/SpotifySetup. Now of course I've got the Make sure that your X server is running and that $DISPLAY is set correctly. error.

To work around this I whitelist the XAUTHORITY and DISPLAY environment variables.

root@153a68bfb4c7:~# su --login --whitelist-environment=XAUTHORITY,DISPLAY user -c "wine /usr/src/SpotifySetup.exe"

This results in the same error message as before. Please install Spotify using a normal account instead of an Administrator account. I've searched for a way to run something with less privileges in Wine. The only thing I could find was wine runas /trustlevel:0x2000 <program> in a thread on OneDrive.exe[1]. This wine container however doesn't have C:\Windows\System32\runas.exe. Does anyone know how to add it?

Here's the script I'm using to start the container.

# Credit to @paddy-hack
SESSIONXAUTH=${XAUTHORITY:-$HOME/.Xauthority}
DOCKER_XAUTH=${SESSIONXAUTH}.docker
cp --preserve=all $SESSIONXAUTH $DOCKER_XAUTH
echo "ffff 0000  $(xauth nlist $DISPLAY | cut -d\  -f4-)" \
    | xauth -f $DOCKER_XAUTH nmerge -

docker run --rm -it \
	-v /etc/localtime:/etc/localtime:ro \
	-v $DOCKER_XAUTH:$DOCKER_XAUTH:ro \
	-e XAUTHORITY=$DOCKER_XAUTH \
	--cpuset-cpus 0 \
	-v /tmp/.X11-unix:/tmp/.X11-unix  \
	-e DISPLAY=unix$DISPLAY \
	--device /dev/snd:/dev/snd \
	--name spotify-wine \
	jess/spotify-wine bash

[1] https://bugs.launchpad.net/ubuntu/+source/playonlinux/+bug/1750155

@issue-label-bot

This comment has been minimized.

Copy link

commented Jul 14, 2019

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.90. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@issue-label-bot issue-label-bot bot added the bug label Jul 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.