13.1 Wine permisions problem for user

Hi everyone,

After a couple of moths without been able to run wine but too busy to get to the problem, I just found out that the problem of that I couldn’t execute anything of wine after installing it (tried the software web of opensuse and yast instaling adn uninstalling several times). I’m able to run wine aplications through root, but not with user, I don’t have privileges. It brings wineserver: /tmp/.wine-1000 must not be accessible by other users when trying to run a windows program like for example

wine Risk\ of\ Rain.exe

, and when doing

sudo wine Risk\ of\ Rain.exe

it brings me
**
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
err:systray:initialize_systray Could not create tray window
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.**

So I’m only able to execute doing su and entering the roots password and then running the command.

I’m pretty new to OpenSUSE and I once screwed up because of trying commands of premissions without really knowing, so I was hoping someone could help me to solve this problem.
Thanks in advance,

Quim

Delete /tmp/.wine-1000, and wine should create it again with the correct permissions.

sudo rm -r /tmp/.wine-1000

Then it should hopefully work again.

And you should not run any wine programs as root. This may even have caused your problem in the first place, depending on how you switched to root permissions.

and when doing

sudo wine Risk\ of\ Rain.exe

it brings me
**
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
err:systray:initialize_systray Could not create tray window
Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.**

So I’m only able to execute doing su and entering the roots password and then running the command.

You cannot run graphical programs with sudo on a default openSUSE installation.
Use kdesu, gnomesu, or xdg-su instead, they are designed for that purpose.

But, again, you should not run wine applications as root.

Thanks for your answer wolfi, i did as you said and it worked, and i won’t touch wine as root anymore ^^ Thank you