Multiuser database application / file locks

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
tilolevante
Newbie
Newbie
Posts: 2
Joined: Tue Mar 08, 2011 1:30 pm

Multiuser database application / file locks

Post by tilolevante »

Hi,

I have an old dbase application. The application works well under wine.
But if I use it with several users, the database is damaged.
File locks do not work properly.

If I start the application several time with one uid, the database is ok.

Is there a way, to get proper file locks with wine?

Thanks for any hints

tilo
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: Multiuser database application / file locks

Post by vitamin »

tilolevante wrote:If I start the application several time with one uid, the database is ok.

Is there a way, to get proper file locks with wine?
Yes, run it under same user same wineprefix. Wine can't support proper file locking between different users/wineprefixes. Wine is a single user application.
tilolevante
Newbie
Newbie
Posts: 2
Joined: Tue Mar 08, 2011 1:30 pm

Re: Multiuser database application / file locks

Post by tilolevante »

vitamin wrote:Yes, run it under same user same wineprefix. Wine can't support proper file locking between different users/wineprefixes. Wine is a single user application.
I tried this already, it works well for the file lock. But the windows focus is a problem:

Example: Two users start the app with the same wineprefix and uid (using sudo). Flie locking is fine.

If the first users tries to enter a text and the second user klicks on a window, then the first user looses the window focus and can not type anymore.
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

That's interesting... I don't know if Wine has ever been tested with
different instances of an app running together with different DISPLAYs.

Try filing a bug report at bugs.winehq.org.
Alexandre Julliard

Multiuser database application / file locks

Post by Alexandre Julliard »

"DanKegel" <[email protected]> writes:
That's interesting... I don't know if Wine has ever been tested with
different instances of an app running together with different DISPLAYs.

Try filing a bug report at bugs.winehq.org.
It's not supported, and there are bugs for this already.

--
Alexandre Julliard
[email protected]
Locked