Wine don't run delphi software in a shared windows folder. How to solve it?

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
big_pecas
Level 1
Level 1
Posts: 7
Joined: Sat Sep 19, 2020 9:06 am

Wine don't run delphi software in a shared windows folder. How to solve it?

Post by big_pecas »

Good morning.

Linux: Xubunu 20.04
Wine32 Stable

I have an old software, make it in delphi. It's in a shared windows 7 folder, and it DB to. BD run on Firebird 1.5 and i haved trying this app on Linux Wine. I have Samba installed and it works Ok. I have permission to read and write on shared folder. My problems:
1. In windows, we run BDE software for connect DB, but it crash when I try to connect BD with Wine;
2. Anywhere, I try to run the application by a launcher with the following characteristics:

Code: Select all

[Desktop Entry]
Name=Conta Shop
Exec=env WINEPREFIX="/home/tecnico/.wine" wine-stable D:\\SRV_Shop\\programa\\shop.exe
Type=Application
StartupNotify=true
Comment=
Path=/home/tecnico/.wine/dosdevices/c:/windows/temp
Terminal=true
3. D:\\SRV_Shop\\programa\\shop.exe corresponds shared windows folder. It application needs to start over there and work/stores on c:\windows\temp. On Windows, this formula works ok.

Someone can lighten some solutions?

Thank you and have a nice end week.
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Wine don't run delphi software in a shared windows folder. How to solve it?

Post by DarkShadow44 »

1) What exactly crashes when you do what exactly?
2) You mean you want to know which path you need to enter?
3) Generally, it would be better to run the program from Linux, not from a shared folder.
big_pecas
Level 1
Level 1
Posts: 7
Joined: Sat Sep 19, 2020 9:06 am

Re: Wine don't run delphi software in a shared windows folder. How to solve it?

Post by big_pecas »

Good morning.

Thanks, Mr. @DarkShadow44.

I have a application delphi who needs to start on server (\\SERVER\app\old_app.exe), but it needs to run/stores on C:\Windows\Temp. "Server" runs Windows 7 x64 and other client machines run XP, 7 and 10 Windows version. Enterprise who make old_app.exe don't wanna make an able app client to run especifically in client side.

How can I run old_app.exe with this espacifications with WineHQ?

Thank you.
big_pecas
Level 1
Level 1
Posts: 7
Joined: Sat Sep 19, 2020 9:06 am

Re: Wine don't run delphi software in a shared windows folder. How to solve it?

Post by big_pecas »

Maybe the ask is "What argument in Wine is similar to Start In parameter on Windows .lnk?".

Image

Thank you.
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Wine don't run delphi software in a shared windows folder. How to solve it?

Post by DarkShadow44 »

Hello big_pecas,

you didn't really answer the questions.

Why does the application need to run from the server when it runs locally? Can't you copy it out?

What is the error when you run it from the mounted network share?

Regards,
DarkShadow44
big_pecas
Level 1
Level 1
Posts: 7
Joined: Sat Sep 19, 2020 9:06 am

Re: Wine don't run delphi software in a shared windows folder. How to solve it?

Post by big_pecas »

Good afternoon, @DarkShadow44.
Why does the application need to run from the server when it runs locally? Can't you copy it out?
Who make this application don't want to modify it.

Therefore I getting start the application with this command:

Code: Select all

wine start "D:\\SRV_Shop\\programa\\shop.exe" -wo "c:\\windows\\temp"
  • D: is an mounted windows shared folder in Wine; and
    -wo is a windows command prompt to start shop.exe in c:\windows\temp.
However... it can't find database, even BDE (application used on windows to point for database) was started and the connection with database have status connected in BDE. Can You help me with this problem?
big_pecas
Level 1
Level 1
Posts: 7
Joined: Sat Sep 19, 2020 9:06 am

Re: Wine don't run delphi software in a shared windows folder. How to solve it?

Post by big_pecas »

Command:

Code: Select all

WINEDEBUG=+odbc32 wine start "D:\\SRV_Shop\\programa\\shop.exe" -wo "c:\\windows\\temp"
Return after close program (that returns error why can't finde database .fdb):

Code: Select all

0039:fixme:font:get_outline_text_metrics failed to read full_nameW for font L"Ani"!
0039:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
User avatar
DarkShadow44
Level 8
Level 8
Posts: 1207
Joined: Tue Nov 22, 2016 5:39 pm

Re: Wine don't run delphi software in a shared windows folder. How to solve it?

Post by DarkShadow44 »

That's not an error. What exactly is the error? Full log please.
Locked