wine directory doesn't have takeown command

Questions about Wine on Linux
Locked
eri0o
Newbie
Newbie
Posts: 4
Joined: Wed Nov 15, 2017 12:27 pm

wine directory doesn't have takeown command

Post by eri0o »

Hello,

I am trying to run a program, unfortunately it calls takeown.exe and it fails. Takeown is not needed though. How would I add a stub takeown command to my wine directory?

Thanks
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: wine directory doesn't have takeown command

Post by Bob Wya »

eri0o wrote:Hello,

I am trying to run a program, unfortunately it calls takeown.exe and it fails. Takeown is not needed though. How would I add a stub takeown command to my wine directory?

Thanks
@eri0o

Being a bit stupid I would create a dummy executable file with AutoIt... :?
Which is easy: just create an empty script and compile it to a .exe executable file.

I'm sure there's an easier way - but it's just what I know well... 8)

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

Re: wine directory doesn't have takeown command

Post by DarkShadow44 »

Mind providing more information about what program that is? Maybe it makes sense to add a dummy takeown into wine, when that resolves the issue.
Can you compile wine from sources? If so, I could give you a patch to test.
eri0o
Newbie
Newbie
Posts: 4
Joined: Wed Nov 15, 2017 12:27 pm

Re: wine directory doesn't have takeown command

Post by eri0o »

The program is Adventure Game Studio. The takeown.exe command is called when building a game for Linux from the Adventure Game Studio.
eri0o
Newbie
Newbie
Posts: 4
Joined: Wed Nov 15, 2017 12:27 pm

Re: wine directory doesn't have takeown command

Post by eri0o »

Hey, I still didn't solve the issue.

Yes I can build Wine from source.

The software is Adventure Game Studio (which is open source but Windows only). The problem happens when you build your game for Linux. The code works in Windows.
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: wine directory doesn't have takeown command

Post by Bob Wya »

eri0o wrote:Hey, I still didn't solve the issue.
... blah, blah
Much simpler solution just symlink takeown.exe to the ping.exe (which is a dummy executable under Wine):

Code: Select all

cd "${WINEPREFIX:-${HOME%/}/.wine}/drive_c/windows/system32"
ln -s "ping.exe" "takeown.exe"
Bob
Locked