wine, display and root.

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
angguss
Newbie
Newbie
Posts: 2
Joined: Wed Jun 01, 2011 10:00 am

wine, display and root.

Post by angguss »

Hi,
I'm using wine to run a console app I've got (it doesn't actually output anything). It's running on a remote server, so I only have ssh access. When run the program as root, I get
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.
and then the program continues to run perfectly well. Great. Only, I would rather not have to leave it running as root so I tried running it as another user. As another user, it prints the error above and goes no further.

Can anyone advise me as to why the program will run as root, but not another user?

Thanks in advance.
Cloudef
Level 4
Level 4
Posts: 138
Joined: Wed Mar 18, 2009 3:10 pm

Post by Cloudef »

There was similar post just while ago:
http://forum.winehq.org/viewtopic.php?t=11751

I'm pretty sure your console application is not really a console application.
Frédéric Delanoy

wine, display and root.

Post by Frédéric Delanoy »

On Wed, Jun 1, 2011 at 17:07, angguss <[email protected]> wrote:
Hi,
I'm using wine to run a console app I've got (it doesn't actually output anything). It's running on a remote server, so I only have ssh access. When run the program as root, I get
***NEVER*** run wine as root. See FAQ for explanations.
angguss
Newbie
Newbie
Posts: 2
Joined: Wed Jun 01, 2011 10:00 am

Post by angguss »

Cloudef, thanks. Installed Xvfb, set it up and now can run under any user.

I know you should not run wine as root, but it was adamant I got the application running at that time. It's not running as root anymore!

Thanks!
Locked